def Cache.read
import bend-kit-cache@0.3.0.0/cache.bend as Cacheimport 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)