def Cache.complete

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

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

129# Stores what the ticket's fetch found. A stale ticket changes nothing.
130def Cache.complete(~V: Data, c: Cache<V>, t: Ticket, r: Found<V>) -> Cache<V>:
131  Cache{+p, +slots} = c
132  Ticket{+key, g, at} = t
133  Cache.put(~V, p, slots, key, Slot.complete(V, p, Cache.slot(~V, slots, key), g, at, r))

Uses (6)

Used by (1)