Nette\Caching\Storages\FileStorage::read PHP Method

read() public method

Read from cache.
public read ( $key ) : mixed | null
return mixed | null
    public function read($key)
    {
        $meta = $this->readMetaAndLock($this->getCacheFile($key), LOCK_SH);
        if ($meta && $this->verify($meta)) {
            return $this->readData($meta);
            // calls fclose()
        } else {
            return NULL;
        }
    }