final class SubgraphCachePool (View source)

internal  
 

Accessors to in Memory Cache

Detail for runtime performance improvement of the different implementations of {\Neos\ContentRepositoryRegistry\SubgraphCachingInMemory\ContentSubgraphWithRuntimeCaches}. You never need this externally.

All cache accessors have a {\Neos\ContentRepository\Core\Projection\ContentGraph\ContentSubgraphInterface} passed in; and the identity of this content subgraph (ContentRepositoryId, WorkspaceName, DimensionSpacePoint, VisibilityConstraints) will be used to find the right cache.

Methods

getContentSubgraph(ContentRepository $contentRepository, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, VisibilityConstraints $visibilityConstraints)

Fetching a content graph requires a sql query. This is why we cache the actual subgraph instances here as well, to avoid having each time fetched the content graph again.

void
reset(bool $disable)

No description

Details

NodePathCache getNodePathCache(ContentSubgraphInterface $subgraph)

No description

Parameters

ContentSubgraphInterface $subgraph

Return Value

NodePathCache

NodeByNodeAggregateIdCache getNodeByNodeAggregateIdCache(ContentSubgraphInterface $subgraph)

No description

Parameters

ContentSubgraphInterface $subgraph

Return Value

NodeByNodeAggregateIdCache

AllChildNodesByNodeIdCache getAllChildNodesByNodeIdCache(ContentSubgraphInterface $subgraph)

No description

Parameters

ContentSubgraphInterface $subgraph

Return Value

AllChildNodesByNodeIdCache

NamedChildNodeByNodeIdCache getNamedChildNodeByNodeIdCache(ContentSubgraphInterface $subgraph)

No description

Parameters

ContentSubgraphInterface $subgraph

Return Value

NamedChildNodeByNodeIdCache

ParentNodeIdByChildNodeIdCache getParentNodeIdByChildNodeIdCache(ContentSubgraphInterface $subgraph)

No description

Parameters

ContentSubgraphInterface $subgraph

Return Value

ParentNodeIdByChildNodeIdCache

ContentSubgraphInterface getContentSubgraph(ContentRepository $contentRepository, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, VisibilityConstraints $visibilityConstraints)

Fetching a content graph requires a sql query. This is why we cache the actual subgraph instances here as well, to avoid having each time fetched the content graph again.

Parameters

ContentRepository $contentRepository
WorkspaceName $workspaceName
DimensionSpacePoint $dimensionSpacePoint
VisibilityConstraints $visibilityConstraints

Return Value

ContentSubgraphInterface

void reset(bool $disable)

No description

Parameters

bool $disable

Return Value

void