src/Driver/Base/FileCache.php
public function getCachedItem($key)
    {
        $path = sha1($key);

        if ($this->filesystem()->has($path)) {
            $item = explode(PHP_EOL, $this->filesystem()->read($path), 2);

            return new CacheItemClass($key, $item[1] ?? null, $item[0] ?? null);
        }
    }
public function getCachedItem($key)
    {
        $path = sha1($key);

        if ($this->filesystem()->has($path)) {
            $item = explode(PHP_EOL, $this->filesystem()->read($path), 2);

            return new CacheItemClass($key, $item[1] ?? null, $item[0] ?? null);
        }
    }
public function getCachedItem ( $ key ) { $ path = sha1 ( $ key ) ; if ( $ this -> filesystem ( ) -> has ( $ path ) ) { $ item = explode ( PHP_EOL , $ this -> filesystem ( ) -> read ( $ path ) , 2 ) ; return new CacheItemClass ( $ key , $ item [ 1 ] ?? null , $ item [ 0 ] ?? null ) ; } }
Returns a CacheItemClass for the.

@param string $key The cache item key.

@throws \Psr\SimpleCache\InvalidArgumentException

@return CacheItemInterface
Returns a CacheItemClass for the .