Skip to content

$cache->set()

Writes an item to the cache for a given number of minutes and returns whether the operation was successful; this needs to be defined by the driver

$cache->set(string $key, mixed $value, int $minutes = 0): bool

Parameters

Name Type Default
$key * string
$value * mixed
$minutes int

Return type

bool

Parent class

Kirby\Cache\Cache