Skip to content

Kirby 5.0.4

$appCaches->cache()

Returns a cache instance by key

$appCaches->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 $appcaches object it is applied to and returns it again.

Parent class

Kirby\Cms\AppCaches