Module Util.Lru_ss
A mutable Lru for string->string map; at the moment this does not record negative information (this key is not present) but perhaps it should FIXME
module K : sig ... endmodule V : sig ... endNOTE a mutable Lru; you have to call trim explicitly
include sig ... end
val create : ?random:bool -> int -> tval is_empty : t -> boolval size : t -> intval weight : t -> intval capacity : t -> intval resize : int -> t -> unitval trim : t -> unitval mem : k -> t -> boolval find : k -> t -> v optionval promote : k -> t -> unitval add : k -> v -> t -> unitval remove : k -> t -> unitval lru : t -> (k * v) optionval drop_lru : t -> unitval fold : (k -> v -> 'a -> 'a) -> 'a -> t -> 'aval iter : (k -> v -> unit) -> t -> unitval of_list : (k * v) list -> tval to_list : t -> (k * v) listval pp : ?pp_size:(Stdlib.Format.formatter -> (int * int) -> unit) -> ?sep:(Stdlib.Format.formatter -> unit -> unit) -> (Stdlib.Format.formatter -> (k * v) -> unit) -> Stdlib.Format.formatter -> t -> unitval pp_dump : (Stdlib.Format.formatter -> k -> unit) -> (Stdlib.Format.formatter -> v -> unit) -> Stdlib.Format.formatter -> t -> unit