neuralqx.experimental.operators.symbolic.compiler.cache.store module

Artifact cache stores for the symbolic compiler.

class AbstractSymbolicArtifactStore

Bases: ABC

Abstract interface for compiled symbolic operator artifact stores.

Stores are keyed by SymbolicCacheKey (a namespace + SHA-256 token pair) and return SymbolicCompiledArtifact instances.

class InMemorySymbolicArtifactStore(max_entries=None)

Bases: AbstractSymbolicArtifactStore

Thread-safe in-process artifact store backed by a Python dict.

This is the default store used by SymbolicCompiler. It lives for the duration of the Python process and provides O(1) lookup keyed by the SHA-256 cache token.

Parameters:

max_entries (int | None) – Optional soft upper bound on the number of entries. When exceeded the oldest entry (insertion order) is evicted. None (default) means no limit.