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

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