src/Directory.php
/**
     * Deletes the specified cache record.
     *
     * @param  string $key The cache id to remove.
     * @return boolean Returns True on success or False on failure.
     */
Deletes the specified cache record.
@param  string $key The cache id to remove.
@return boolean Returns True on success or False on failure.
Deletes the specified cache record . @param string $key The cache id to remove . @return boolean Returns True on success or False on failure .
public function delete($key)
    {
        $key = $this->mapKey($key);
        $path = $this->getKeyPath($key);
        if (!is_file($path)) {
            return false;
        }
        unlink($path);
        foreach ($this->getAllTags() as $tag) {
            $ids = $this->loadTag($tag);
            if (null === $ids) {
                continue;
            }
            if (in_array($key, $ids, true) !== false) {
                unset($ids[array_search($key, $ids, true)]);
                $this->saveTag($tag, $ids);
            }
        }
        $this->saveExpire($key, false);
        return true;
    }
public function delete ( $ key ) { $ key = $ this -> mapKey ( $ key ) ; $ path = $ this -> getKeyPath ( $ key ) ; if ( ! is_file ( $ path ) ) { return false ; } unlink ( $ path ) ; foreach ( $ this -> getAllTags ( ) as $ tag ) { $ ids = $ this -> loadTag ( $ tag ) ; if ( null === $ ids ) { continue ; } if ( in_array ( $ key , $ ids , true ) !== false ) { unset ( $ ids [ array_search ( $ key , $ ids , true ) ] ) ; $ this -> saveTag ( $ tag , $ ids ) ; } } $ this -> saveExpire ( $ key , false ) ; return true ; }
Deletes the specified cache record.
Deletes the specified cache record .