Number of currently retained entries.
Return a new frozen snapshot of usage and limits.
Sum of currently retained entry weights.
Remove all entries and reset retained weight to zero.
Read and refresh an existing entry, including undefined, or synchronously create it. The factory receives the key and runs only on a miss, even when retention is disabled. Return the computed value whether or not it is admitted. Factory and insertion errors propagate; the factory must not mutate this cache. Promise values are stored as-is.
Live iterator, ordered least to most recently used.
Synchronous, bounded cache using Map key identity (SameValueZero). Successful get/set refresh recency; has/peek/keys do not. Values are not copied. Rejected or throwing insertions leave the cache unchanged. Callbacks must not mutate this cache. No TTL, background work, or asynchronous loading is performed.