- redis : LeanRedis.Client τ
- inflight : Std.Mutex (Std.HashMap String Inflight)
Instances For
Equations
Instances For
Equations
- Cache.newDefault config = Cache.new config
Instances For
@[inline, specialize #[]]
def
Cache.get
{τ : Type}
[LeanRedis.Transport.Transport τ]
(cache : Cache τ)
(key : String)
(cb : Unit → Std.Internal.IO.Async.Async String)
(options : LeanRedis.SetOptions := { })
:
Gets a value from the cache by key. If no value is found, the callback will be called to populate it. The callback is executed exactly once for each key, even if multiple threads request the same key concurrently. Cache stampedes are prevented
Equations
- One or more equations did not get rendered due to their size.