Skip to content

Interface: MetadataCache\<T\>

One namespaced view over the shared metadata cache.

T

get(): Promise<T>

Return a fresh-or-fallback value, refreshing when stale.

Promise<T>


peek(): Promise<T | undefined>

Read process memory without refreshing.

Promise<T | undefined>


refresh(): Promise<T>

Force a refresh attempt even when the entry is still fresh.

Promise<T>


update(mutator): Promise<T>

Mutate the cached value and persist it.

(current) => T

Promise<T>