Neos\Cache\Backend\SimpleFileBackend::current PHP Метод

current() публичный Метод

Returns the data of the current cache entry pointed to by the cache entry iterator.
public current ( ) : mixed
Результат 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;
    }