Neos\Cache\Backend\SimpleFileBackend::current PHP Method

current() public method

Returns the data of the current cache entry pointed to by the cache entry iterator.
public current ( ) : mixed
return mixed
    public function current()
    {
        if ($this->cacheFilesIterator === null) {
            $this->rewind();
        }
        $pathAndFilename = $this->cacheFilesIterator->getPathname();
        $lock = new Lock($pathAndFilename, false);
        $result = file_get_contents($pathAndFilename);
        $lock->release();
        return $result;
    }