= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This is similar to CACHE_MAP
except that it handles option
. Specifically, you can insert 'a option Lwt.t
and promises that are fulfilled with None
are treated like promises that are rejected:
- They are removed from the cache automatically.
- They are not folded over by
fold
.
type key = Tezos_crypto.Block_hash.t
val create : int -> 'a t
val length : 'a t -> int
val capacity : 'a t -> int
val clear : 'a t -> unit