public function expired(string $key): bool
    {
        try {
            return $this->storage->expired($key);
        } catch (BadPacketException $e) {
            return true;
        }
    }
public function expired(string $key): bool
    {
        try {
            return $this->storage->expired($key);
        } catch (BadPacketException $e) {
            return true;
        }
    }
public function expired ( string $ key ) : bool { try { return $ this -> storage -> expired ( $ key ) ; } catch ( BadPacketException $ e ) { return true ; } }
Determines whether an item is present in the cache and life time expired.

@param string $key The unique cache key of the item to check for expiring.

@return bool True if the item was expired. False if not.
Determines whether an item is present in the cache and life time expired .