CallbackInterface
in
Computes and returns the cached value of an item.
Tags
Table of Contents
- __invoke() : mixed
Methods
__invoke()
public
__invoke(CacheItemInterface|ItemInterface $item, bool &$save) : mixed
Parameters
- $item : CacheItemInterface|ItemInterface
-
The item to compute the value for
- $save : bool
-
Should be set to false when the value should not be saved in the pool
Return values
mixed —The computed value for the passed item