Table of Contents

Class GraphExecutionCache

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

Owns cached graph execution resources across multiple graph runs.

public class GraphExecutionCache : IDisposable
Inheritance
GraphExecutionCache
Implements
Inherited Members

Remarks

The cache is intentionally external to TerrainGraph and GraphContext. Execution callers create and dispose one cache instance, then pass it into graph execution so cache-aware nodes can reuse outputs when their inputs and settings have not changed.

Constructors

GraphExecutionCache()

Methods

Dispose()

Disposes every cached resource owned by this cache.

Flush()

Disposes every cache entry and clears the cache.

RemoveEntry(string)

Removes and disposes one cache entry.

SetEntry(string, Entry)

Stores a cache entry, disposing any previous entry that used the same id.

TryGetEntry(string, out Entry)

Attempts to retrieve one cache entry by id.