Module Concurrent.MakeCache

Parameters

module Key : sig ... end

Signature

module HQ : IStdlib.IStd.Hash_queue.S with type key = Key.t
type 'a t
val create : name:string -> 'a t
val lookup : 'a t -> HQ.key -> 'a option
val add : 'a t -> HQ.key -> 'a -> unit
val remove : 'a t -> HQ.key -> unit
val clear : 'a t -> unit
val set_lru_mode : 'a t -> lru_limit:int option -> unit
val with_hashqueue : ('a HQ.t -> unit) -> 'a t -> unit