package guardian

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

Module DBCache.LruCacheSource

Sourceval create : ?random:??? -> int -> t
Sourceval is_empty : t -> bool
Sourceval size : t -> int
Sourceval weight : t -> int
Sourceval capacity : t -> int
Sourceval resize : int -> t -> unit
Sourceval trim : t -> unit
Sourceval mem : k -> t -> bool
Sourceval find : k -> t -> v option
Sourceval promote : k -> t -> unit
Sourceval add : k -> v -> t -> unit
Sourceval remove : k -> t -> unit
Sourceval lru : t -> (k * v) option
Sourceval drop_lru : t -> unit
Sourceval fold : (k -> v -> 'a -> 'a) -> 'a -> t -> 'a
Sourceval iter : (k -> v -> unit) -> t -> unit
Sourceval of_list : (k * v) list -> t
Sourceval to_list : t -> (k * v) list
Sourceval pp : ?pp_size:??? -> ?sep:??? -> (Format.formatter -> (k * v) -> unit) -> Format.formatter -> t -> unit
Sourceval pp_dump : (Format.formatter -> k -> unit) -> (Format.formatter -> v -> unit) -> Format.formatter -> t -> unit