ArrayParserCache deprecated

class ArrayParserCache implements ParserCacheInterface

deprecated

ArrayParserCache class is deprecated since version 3.2 and will be removed in 4.0. Use the Symfony\Component\Cache\Adapter\ArrayAdapter class instead.

Methods

ParsedExpression|null fetch(string $key)

Fetches an expression from the cache.

save(string $key, ParsedExpression $expression)

Saves an expression in the cache.

Details

ParsedExpression|null fetch(string $key)

Fetches an expression from the cache.

Parameters

string $key The cache key

Return Value

ParsedExpression|null

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/ExpressionLanguage/ParserCache/ArrayParserCache.html