Skip to content

Kirby 5.0.4

$kirby->cache()

Returns a cache instance by key

$kirby->cache(string $key): Kirby\Cache\Cache

Parameters

Name Type Default
$keyrequired string no default value

Return type

Kirby\Cache\Cache

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

Parent class

Kirby\Cms\App