getCacheFromNode( node, parent = true ) {

		const data = this.getDataFromNode( node );
		if ( data.cache === undefined ) data.cache = new NodeCache( parent ? this.getCache() : null );

		return data.cache;

	}
Returns a cache for the given node.

@param {Node} node - The node.
@param {boolean} [parent=true] - Whether this node refers to a shared parent cache or not.
@return {NodeCache} The cache.