src/Adapter/FileCache.php
public function remove($key)
    {
        if (! $this->enabled) {
            return;
        }
        $file = $this->getPath($key);
        if (! file_exists($file)) {
            return true;
        }

        set_error_handler(function () {
            throw new Exception('An error occurred.');
        }, E_WARNING);

        try {
            unlink($file);
        } catch (Exception $ex) {
            restore_error_handler();

            return false;
        }
        restore_error_handler();

        return true;
    }
public function remove($key)
    {
        if (! $this->enabled) {
            return;
        }
        $file = $this->getPath($key);
        if (! file_exists($file)) {
            return true;
        }

        set_error_handler(function () {
            throw new Exception('An error occurred.');
        }, E_WARNING);

        try {
            unlink($file);
        } catch (Exception $ex) {
            restore_error_handler();

            return false;
        }
        restore_error_handler();

        return true;
    }
public function remove ( $ key ) { if ( ! $ this -> enabled ) { return ; } $ file = $ this -> getPath ( $ key ) ; if ( ! file_exists ( $ file ) ) { return true ; } set_error_handler ( function ( ) { throw new Exception ( 'An error occurred.' ) ; } , E_WARNING ) ; try { unlink ( $ file ) ; } catch ( Exception $ ex ) { restore_error_handler ( ) ; return false ; } restore_error_handler ( ) ; return true ; }
Removes a stored variable from the cache.

@param string $key The variable name

@return null|bool Returns null if adapter is disabled, true on success,
false otherwise
Removes a stored variable from the cache .