Jackalope\Transport\DoctrineDBAL\CachedClient::getReferences PHP 메소드

getReferences() 공개 메소드

{@inheritDoc}
public getReferences ( $path, $name = null )
    public function getReferences($path, $name = null)
    {
        if (empty($this->caches['nodes'])) {
            return parent::getReferences($path, $name);
        }
        $cacheKey = "nodes references: {$path}, {$name}, " . $this->workspaceName;
        $cacheKey = $this->sanitizeKey($cacheKey);
        if (false !== ($result = $this->caches['nodes']->fetch($cacheKey))) {
            return $result;
        }
        $references = parent::getReferences($path, $name);
        $this->caches['nodes']->save($cacheKey, $references);
        return $references;
    }