src/Driver/Base/FileCache.php
public function isExpired(CacheItemInterface $item)
    {
        if ($item->isExpired()) {
            $this->delete($item->getKey());

            return true;
        }

        return false;
    }
public function isExpired(CacheItemInterface $item)
    {
        if ($item->isExpired()) {
            $this->delete($item->getKey());

            return true;
        }

        return false;
    }
public function isExpired ( CacheItemInterface $ item ) { if ( $ item -> isExpired ( ) ) { $ this -> delete ( $ item -> getKey ( ) ) ; return true ; } return false ; }
Whether an item from the cache is expired. If it does, deletes it from the file system.

@param CacheItemInterface $item The item to evaluate.

@return
Whether an item from the cache is expired . If it does deletes it from the file system .