function CacheItemInterface::get
Retrieves the value of the item from the cache associated with this object's key.
The value returned must be identical to the value originally stored by set().
If isHit() returns false, this method MUST return null. Note that null is a legitimate cached value, so the isHit() method SHOULD be used to differentiate between "null value was found" and "no value was found."
Return value
mixed The value corresponding to this cache item's key, or null if not found.
File
-
vendor/
psr/ cache/ src/ CacheItemInterface.php, line 49
Class
- CacheItemInterface
- CacheItemInterface defines an interface for interacting with objects inside a cache.
Namespace
Psr\CacheCode
public function get() : mixed;