Disabled
The cache that stores nothing and shares nothing: every call runs its own loader on the caller's coroutine.
Stable Core. It forfeits "N concurrent callers cost one load". Final, stateless and shared; usable without the opt-in. stats is always CacheStats.Empty, invalidate and invalidateAll do nothing, and close does nothing, so a client may close it safely. toString() is ResponseCache.Disabled.
Functions
Link copied to clipboard
open suspend fun <V : Any> getOrLoad(key: CacheKey<V>, policy: CachePolicy, loader: suspend () -> Result<Lookup<V>>): Result<Lookup<V>>
getOrLoad accepting any live entry (maxAge is Duration.INFINITE).
Link copied to clipboard
Link copied to clipboard
Drops every stored or in-flight entry (contract point 7), as invalidate does for one key. Never throws; a no-op after close.
Link copied to clipboard
Reads the four counts (contract point 8).