interface ParserCacheInterface

deprecated since version 3.2, to be removed in 4.0. Use Psr\Cache\CacheItemPoolInterface instead.

Methods

save(string $key, ParsedExpression $expression)

Saves an expression in the cache.

fetch(string $key)

Fetches an expression from the cache.

Details

at line 31
save(string $key, ParsedExpression $expression)

Saves an expression in the cache.

Parameters

string $key The cache key
ParsedExpression $expression A ParsedExpression instance to store in the cache

at line 40
ParsedExpression|null fetch(string $key)

Fetches an expression from the cache.

Parameters

string $key The cache key

Return Value

ParsedExpression|null