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