$cache->expired()
Checks if an item in the cache is expired
$cache->expired(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.