empty : Nat -> F1 s (LRUCache1 s k v) Create an empty LRUCache1 of the given size.
Totality: total
Visibility: exportinsert : Hashable k => Ord k => k -> v -> LRUCache1 s k v -> F1 s (LRUCache1 s k v) Insert an element into the LRUCache1.
Totality: total
Visibility: exportinsertView : Hashable k => Ord k => k -> v -> LRUCache1 s k v -> F1 s (Maybe (k, v), LRUCache1 s k v) Insert an element into the LRUCache1 returning the evicted element if any.
When the logical clock reaches its maximum value and all values are
evicted Nothing is returned.
Totality: total
Visibility: exportlookup : Hashable k => Ord k => k -> LRUCache1 s k v -> F1 s (Maybe (v, LRUCache1 s k v)) Lookup an element in an LRUCache1 and mark it as the least recently accessed.
Totality: total
Visibility: exporttoList : Hashable k => Ord k => LRUCache1 s k v -> F1 s (List (k, v)) Convert an LRUCache1 to a list of (key, value) pairs.
Totality: total
Visibility: export