API / $cache.get

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

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.
Type Description
mixed The value of the item from the cache, or $default in case of cache miss.