Skip to content

Kirby 5.2.0

$cache->remove()

Removes an item from the cache and returns whether the operation was successful; this needs to be defined by the driver

$cache->remove(string $key): bool

Parameters

Name Type Default
$keyrequired string no default value

Return type

bool

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

Parent class

Kirby\Cache\Cache