Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[V any] struct { // contains filtered or unexported fields }
Cache is a minimal string-keyed LRU cache shared by the integration module's content-hash caches. It is not safe for concurrent use; owners guard it with their own mutex.
type Synced ¶ added in v0.40.0
type Synced[V any] struct { // contains filtered or unexported fields }
Synced is a mutex-guarded Cache with a get-or-build fast path — the access pattern every integration content-hash cache (compiled programs, resolved schemas, code map indexes, per-system clients) shares.
func NewSynced ¶ added in v0.40.0
NewSynced creates a synchronized cache bounded to capacity entries.
func (*Synced[V]) GetOrBuild ¶ added in v0.40.0
GetOrBuild returns the value cached under key, building and caching it on first sight. Build runs under the cache lock, so concurrent misses never build the same entry twice.
Click to show internal directories.
Click to hide internal directories.