package octez-internal-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Irmin_pack_unix.LruSource

Sourcetype t

An 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.

Sourcetype key = Optint.Int63.t
Sourceval add : t -> Optint.Int63.t -> Irmin_pack.Pack_value.weight -> value -> unit

add t key weight value maps value with weight to key in t.

Note: Irmin_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.

Sourceval find : t -> key -> value
Sourceval mem : t -> key -> bool
Sourceval clear : t -> unit
Sourceval iter : t -> (key -> value -> unit) -> unit
OCaml

Innovation. Community. Security.