public function get($key, $default = null)
    {
        $this->ensureValidKey($key);
        $result = $this->innerEngine->read($key);
        if ($result === false) {
            return $default;
        }

        return $result;
    }
public function get($key, $default = null)
    {
        $this->ensureValidKey($key);
        $result = $this->innerEngine->read($key);
        if ($result === false) {
            return $default;
        }

        return $result;
    }
public function get ( $ key , $ default = null ) { $ this -> ensureValidKey ( $ key ) ; $ result = $ this -> innerEngine -> read ( $ key ) ; if ( $ result === false ) { return $ default ; } return $ result ; }
Fetches the value for a given key from the cache.

@param string $key The unique key of this item in the cache.
@param mixed $default Default value to return if the key does not exist.
@return mixed The value of the item from the cache, or $default in case of cache miss.
@throws \Cake\Cache\InvalidArgumentException If the $key string is not a legal value.
Fetches the value for a given key from the cache .