Brassaia_eio_pack_io.LruAn LRU that support memory-bound capacity via configuration key lru_max_memory. Falls back to entry-based capacity via lru_size configuration key, if max memory is not configured.
type key = Import.int63val create : Brassaia_eio_pack_io.Import.Brassaia.Backend.Conf.t -> tval add :
t ->
Import.int63 ->
Brassaia_eio_pack_io.Import.Brassaia_pack.Pack_value.weight ->
value ->
unitadd t key weight value maps value with weight to key in t.
Note: Brassaia_pack.Pack_value.weight.Immediate weights will be checked to see if they exceed an entry weight limit. The current hard-coded entry weight limit is 20kB.
val clear : t -> unit