public function delete(string $id): bool
    {
        if (\array_key_exists($id, $this->cache)) {

            //delete value
            unset($this->cache[$id]);

            //return function result
            return true;
        }

        return false;
    }
public function delete(string $id): bool
    {
        if (\array_key_exists($id, $this->cache)) {

            //delete value
            unset($this->cache[$id]);

            //return function result
            return true;
        }

        return false;
    }
public function delete ( string $ id ) : bool { if ( \ array_key_exists ( $ id , $ this -> cache ) ) { //delete value unset ( $ this -> cache [ $ id ] ) ; //return function result return true ; } return false ; }
Delete value from container.

@param string $id
Delete value from container .