Mongolid\Util\CacheComponent::get PHP Method

get() public method

Retrieve an item from the cache by key.
public get ( string $key ) : mixed
$key string Cache key of the item to be retrieved.
return mixed
    public function get(string $key)
    {
        if ($this->has($key)) {
            return $this->storage[$key];
        }
    }