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;
    }