def get_and_refresh

bend-collections-laws-math@1.0.0.0 · proofs/lib/lemmas/src/cache.bend:213

import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/cache.bend as Cache
import Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/types/model.bend as T
import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/time.bend as Time

213def get_and_refresh(-K: Data, -V: Data, encode: K -> String, +c: Cache<K, V>, key: K, ns: T.Int64, now: T.Int64) -> Step<K, V>:
214  +code = encode(key)
215  refresh_found(K, V, c, code, Time.deadline(now, ns), lookup(K, V, c, code))

Uses (7)

Used by (0)

No other definition uses this definition.