src/Cache.php
public function delete($key)
        {
            if (!$this->enabled) return;

            switch ($this->type) {
                case self::TYPE_APC:
                    apc_delete($key);
                    break;
                case self::TYPE_FILE:
                    $filename = $this->path . $key . '.cache';
                    unlink($filename);
            }
        }
public function delete($key)
        {
            if (!$this->enabled) return;

            switch ($this->type) {
                case self::TYPE_APC:
                    apc_delete($key);
                    break;
                case self::TYPE_FILE:
                    $filename = $this->path . $key . '.cache';
                    unlink($filename);
            }
        }
public function delete ( $ key ) { if ( ! $ this -> enabled ) return ; switch ( $ this -> type ) { case self :: TYPE_APC : apc_delete ( $ key ) ; break ; case self :: TYPE_FILE : $ filename = $ this -> path . $ key . '.cache' ; unlink ( $ filename ) ; } }
Delete an entry from the cache

@param string $key The cache key to delete
Delete an entry from the cache