src/sb/Cache/Hash.php
public function delete($key)
    {

        $deleted = false;

        $catalog = \array_keys($this->getKeys());
        foreach ($catalog as $k) {

            if ($k == $key) {
                unset($this->hash[$key]);
                if ($delete) {
                    $this->catalogKeyDelete($k);
                    $deleted = true;
                }
            }
        }

        return $deleted;
    }
public function delete($key)
    {

        $deleted = false;

        $catalog = \array_keys($this->getKeys());
        foreach ($catalog as $k) {

            if ($k == $key) {
                unset($this->hash[$key]);
                if ($delete) {
                    $this->catalogKeyDelete($k);
                    $deleted = true;
                }
            }
        }

        return $deleted;
    }
public function delete ( $ key ) { $ deleted = false ; $ catalog = \ array_keys ( $ this -> getKeys ( ) ) ; foreach ( $ catalog as $ k ) { if ( $ k == $ key ) { unset ( $ this -> hash [ $ key ] ) ; if ( $ delete ) { $ this -> catalogKeyDelete ( $ k ) ; $ deleted = true ; } } } return $ deleted ; }
Deletes cache data
Deletes cache data