package
Version:
v1.166.0
Opens a new window with list of versions in this module.
Published: Nov 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package graphcache keeps derived script graphs: a least-recently-used map
keyed by the digest of what a graph was derived from (scriptflow).
type Cache[V any] struct {
}
Cache is a least-recently-used map of values by key.
New is a cache keeping at most limit values.
Get is the value kept under key, marking it the most recently used.
func (c *Cache[V]) Put(key Key, value V)
Put keeps value under key, dropping the least recently used past the limit.
Key is the digest a value is kept under.
KeyOf is the digest of source and each named part, the parts in name order,
so the same inputs always give the same key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.