The contents will be first attempted to be retrieved by searching by the
key in the cache group. If the cache is hit (success) then the contents
are returned.
On failure, the number of cache misses will be incremented.
public get ( integer | string $key, string $group = 'default', string $force = false, boolean &$found = null ) : boolean | mixed | ||
$key | integer | string | What the contents in the cache are called |
$group | string | Where the cache contents are grouped |
$force | string | Whether to force a refetch rather than relying on the local cache (default is false) |
$found | boolean | Optional. Whether the key was found in the cache. Disambiguates a return of false, a storable value. Passed by reference. Default null. |
return | boolean | mixed | False on failure to retrieve contents or the cache contents on success |