Fusio

API / $cache.get

Fetches a value from the cache. MUST be thrown if the $key string is not a legal value.

Arguments
Name Type Description
$key string The unique key of this item in the cache.
$default mixed Default value to return if the key does not exist.
Return
Type Description
mixed The value of the item from the cache, or $default in case of cache miss.