public function delete(string $key)
    {
        $keyNormalized = $this->normalized($key);

        $result = static::$handler->delete($keyNormalized);

        if ($result) {
            if ($this->assistant) {
                $this->assistant->remove($keyNormalized);
                $this->assistant->save();
            }
        }

        return $result;
    }
public function delete(string $key)
    {
        $keyNormalized = $this->normalized($key);

        $result = static::$handler->delete($keyNormalized);

        if ($result) {
            if ($this->assistant) {
                $this->assistant->remove($keyNormalized);
                $this->assistant->save();
            }
        }

        return $result;
    }
public function delete ( string $ key ) { $ keyNormalized = $ this -> normalized ( $ key ) ; $ result = static :: $ handler -> delete ( $ keyNormalized ) ; if ( $ result ) { if ( $ this -> assistant ) { $ this -> assistant -> remove ( $ keyNormalized ) ; $ this -> assistant -> save ( ) ; } } return $ result ; }
Remove an item from the cache.

@param string $key 缓存键

@return bool
Remove an item from the cache .