src/Adapter/MemoryAdapter/KeyTrait.php
public function delete($key)
    {
        try {
            $this->get($key);
        } catch (KeyNotFoundException $e) {
            return false;
        }

        unset($this->store[$key]);

        return true;
    }
public function delete($key)
    {
        try {
            $this->get($key);
        } catch (KeyNotFoundException $e) {
            return false;
        }

        unset($this->store[$key]);

        return true;
    }
public function delete ( $ key ) { try { $ this -> get ( $ key ) ; } catch ( KeyNotFoundException $ e ) { return false ; } unset ( $ this -> store [ $ key ] ) ; return true ; }
Removes a key.

@param string $key

@return bool True if the deletion was successful, false if the deletion was unsuccessful.
Removes a key .