orm

The ORM library provides a storage backend to persist ML values.
Library orm
Module type Orm . Weakid . S
type key
type 'a t
val create : int -> 'a t
val clear : 'a t -> unit
val add : 'a t -> key -> 'a -> unit
val replace : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val merge : 'a t -> key -> 'a -> 'a
val find : 'a t -> key -> 'a
val find_all : 'a t -> key -> 'a list
val mem : 'a t -> key -> bool
val iter : 'a t -> ( key -> 'a -> unit ) -> unit
val fold : 'a t -> ( key -> 'a -> 'b -> 'b ) -> 'b -> 'b
val count : 'a t -> int
val stats : 'a t -> int * int * int * int * int * int
val to_list : 'a t -> (key * 'a) list