$cache->get()
Gets an item from the cache
$cache->get(string $key, $default = null)
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
| $default | mixed |
null
|
Parent class
Examples
// get an item from the cache driver
$value = $cache->get('value');