def Cache.read

bend-kit-cache@0.3.0.0 · cache.bend:115

import bend-kit-cache@0.3.0.0/cache.bend as Cache
import Base

115# The fresh entry for key at `now`, or None when the caller must fetch.
116def Cache.read(~V: Data, c: Cache<V>, +key: String, +now: Nat) -> Maybe<&2, Entry<V>>:
117  Cache{p, slots} = c
118  Slot.read(V, Cache.slot(~V, slots, key), now)

Uses (7)

Used by (1)