effect-io-ai

Package: effect
Module: ScopedCache

ScopedCache.keys

Retrieves all active keys from the cache, automatically filtering out expired entries.

When to use

Use to inspect currently cached unexpired keys without running cache lookups.

Gotchas

Expired entries are removed and their scopes are closed while filtering.

See

Signature

declare const keys: <Key, A, E, R>(self: ScopedCache<Key, A, E, R>) => Effect.Effect<Array<Key>>

Source

Since v4.0.0