Neos.ContentRepository/Classes/Domain/Service/Cache/FirstLevelNodeCache.php
public function setByPath($path, NodeInterface $node = null)
    {
        $this->nodesByPath[$path] = $node;
        if ($node !== null) {
            $this->nodesByIdentifier[$node->getIdentifier()] = $node;
        }
    }
public function setByPath($path, NodeInterface $node = null)
    {
        $this->nodesByPath[$path] = $node;
        if ($node !== null) {
            $this->nodesByIdentifier[$node->getIdentifier()] = $node;
        }
    }
public function setByPath ( $ path , NodeInterface $ node = null ) { $ this -> nodesByPath [ $ path ] = $ node ; if ( $ node !== null ) { $ this -> nodesByIdentifier [ $ node -> getIdentifier ( ) ] = $ node ; } }
Adds the given node to the cache for the given path. The node
will also be added under it's identifier.

@param string $path
@param NodeInterface $node
@return void
Adds the given node to the cache for the given path . The node will also be added under it s identifier .