Interface: MetadataCacheOptions\<T\>
Factory inputs for one named metadata cache.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”fallback
Section titled “fallback”
readonlyfallback:T
Hard-coded / committed baseline used when store and load both miss.
readonlykey:string
Stable cache key.
readonlyoptionalload?: () =>Promise<T>
Optional refresh source.
Returns
Section titled “Returns”Promise<T>
readonlymerge: (input) =>T
Combine a fresh load, prior store value, and the hard-coded fallback.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”T
ttlMs?
Section titled “ttlMs?”
readonlyoptionalttlMs?:number
Freshness window; defaults to one day.