public function forget(string $key): bool
    {
        $key = $this->hashKey($key);
        if (\array_key_exists($key, $this->cache)) {
            unset($this->cache[$key]);
            return true;
        }
        return false;
    }
public function forget(string $key): bool
    {
        $key = $this->hashKey($key);
        if (\array_key_exists($key, $this->cache)) {
            unset($this->cache[$key]);
            return true;
        }
        return false;
    }
public function forget ( string $ key ) : bool { $ key = $ this -> hashKey ( $ key ) ; if ( \ array_key_exists ( $ key , $ this -> cache ) ) { unset ( $ this -> cache [ $ key ] ) ; return true ; } return false ; }
Clear the cache for the given key
Returns true on success or false on failure.

@param string $key
@return bool
@internal param string $url
Clear the cache for the given key Returns true on success or false on failure .