type Cache

bend-collections-laws-crypto@1.0.0.0 · proofs/lib/lemmas/src/cache.bend:5

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

5# The list is oldest first; it contains only encoded keys, never values.
6type Cache<-K: Data, -V: Data> is Data:
7  State{capacity: Nat, table: Map<&2, Maybe<&2, T.Entry<K, V>>>, order: List<&2, String>, lifetime: T.Int64, counts: T.Metrics, callback: Bool}

Uses (9)

Used by (45)