interface CallbackInterface

Computes and returns the cached value of an item.

Methods

mixed
__invoke(CacheItemInterface $item, bool $save)

No description

Details

mixed __invoke(CacheItemInterface $item, bool $save)

Parameters

CacheItemInterface $item The item to compute the value for
bool $save &$save Should be set to false when the value should not be saved in the pool

Return Value

mixed The computed value for the passed item