Skip to content

Kirby 5.0.4

$memoryCache->retrieve()

Internal method to retrieve the raw cache value; needs to return a Value object or null if not found

$memoryCache->retrieve(string $key): Kirby\Cache\Value|null

Parameters

Name Type Default
$keyrequired string no default value

Return types

Kirby\Cache\Valueornull

This method modifies the existing $memorycache object it is applied to and returns it again.

Parent class

Kirby\Cache\MemoryCache