$nullCache->get()
Gets an item from the cache
$nullCache->get(string $key, $default = null)
Parameters
Name | Type | Default |
---|---|---|
$keyrequired | string |
no default value |
$default | mixed |
null
|
Parent class
Kirby\Cache\NullCache
inherited from Kirby\Cache\Cache
Examples
// get an item from the cache driver
$value = $cache->get('value');