Skip to content

Kirby 5.0.4

$memoryCache->get()

Gets an item from the cache

$memoryCache->get(string $key, $default = null)

Parameters

Name Type Default
$keyrequired string no default value
$default mixed null

Parent class

Kirby\Cache\MemoryCache inherited from Kirby\Cache\Cache

Examples

// get an item from the cache driver
$value = $cache->get('value');