Skip to content

Kirby 4.5.0

$memorycache->expires()

Checks when an item in the cache expires; returns the expiry timestamp on success, null if the item never expires and false if the item does not exist

$memorycache->expires(string $key): int|false|null

Parameters

Name Type Default
$key * string

Return type

int|false|null

Parent class

Kirby\Cache\MemoryCache inherited from Kirby\Cache\Cache