Std.App.Cache
23 public declarations
- absentLifetimeOf
&Std.App.Cache.Cache[K, V] -> IntHow long an absence is remembered.
- Cache
A cache: bounded, with a lifetime for answers and a shorter one for
- capacity
&Std.App.Cache.Cache[K, V] -> IntHow many it may keep.
- emptied
&Std.App.Cache.Cache[K, V] -> Std.App.Cache.Cache[K, V]The cache holding nothing, keeping what it was told about lifetimes.
- Entry
One thing kept, and when it stops being fresh.
- forgetting
&Std.App.Cache.Cache[K, V] -> K -> Std.App.Cache.Cache[K, V]The cache with one thing forgotten, for when a program knows an answer
- Found
What a lookup found.
- hitRate
&Std.App.Cache.Cache[K, V] -> IntHow often it answered, as a percentage, counting a stale answer as an
- hitsOf
&Std.App.Cache.Cache[K, V] -> IntHow many lookups were answered without asking anything else.
- holding
Int -> Int -> Std.App.Cache.Cache[K, V]A cache holding at most this many things, each for this long.
- keeping
&Std.App.Cache.Cache[K, V] -> K -> V -> Int -> Std.App.Cache.Cache[K, V]The cache with an answer kept.
- keepingAbsence
&Std.App.Cache.Cache[K, V] -> K -> Int -> Std.App.Cache.Cache[K, V]The cache remembering that there was no answer.
- lifetimeOf
&Std.App.Cache.Cache[K, V] -> IntHow long an answer stays fresh.
- lookup
&Std.App.Cache.Cache[K, V] -> K -> Int -> (Std.App.Cache.Found[V], Std.App.Cache.Cache[K, V])What a lookup found, and the cache that follows it.
- missesOf
&Std.App.Cache.Cache[K, V] -> IntHow many found nothing at all.
- peek
&Std.App.Cache.Cache[K, V] -> K -> Int -> Std.App.Cache.Found[V]What a lookup found, without counting it or moving anything.
- rememberingAbsence
&Std.App.Cache.Cache[K, V] -> Int -> Std.App.Cache.Cache[K, V]The same, saying how long an absence is remembered.
- render
&Std.App.Cache.Cache[K, V] -> StrWhat a cache has been doing.
- size
&Std.App.Cache.Cache[K, V] -> IntHow many things are kept.
- staleHitsOf
&Std.App.Cache.Cache[K, V] -> IntHow many were answered with something old.
- usable
&Std.App.Cache.Found[V] -> BoolWhether a lookup found something usable, fresh or not.
- valueOf
&Std.App.Cache.Found[V] -> Option[V]What was found, when something was.
- worthRefreshing
&Std.App.Cache.Found[V] -> BoolWhether what was found should be replaced.
