package lru

  1. Overview
  2. Docs

Mutable LRU map.

module type S = sig ... end

Signature of mutable LRU maps.

module Make (K : Hashtbl.HashedType) (V : Weighted) : S with type k = K.t and type v = V.t

Make(K)(V) is the LRU map with bindings K.t -> V.t. The weight of an individual binding is the Weighted.weight of V.t.

module MakeSeeded (K : Hashtbl.SeededHashedType) (V : Weighted) : S with type k = K.t and type v = V.t

MakeSeeded(K)(V) is a variant backed by Hashtbl.SeededS.