ocsipersist

Persistent key/value storage (for Ocsigen) using multiple backends
Library ocsipersist

Parameters

module T : sig ... end
module Key : COLUMN
module Value : COLUMN

Signature

type key = Key.t
type value = Value.t
val name : string
val find : key -> value Lwt.t
val add : key -> value -> unit Lwt.t
val replace_if_exists : key -> value -> unit Lwt.t
val remove : key -> unit Lwt.t
val modify_opt : key -> ( value option -> value option ) -> unit Lwt.t
val length : unit -> int Lwt.t
val iter : ?count:int64 -> ?gt:key -> ?geq:key -> ?lt:key -> ?leq:key -> ( key -> value -> unit Lwt.t ) -> unit Lwt.t
val fold : ?count:int64 -> ?gt:key -> ?geq:key -> ?lt:key -> ?leq:key -> ( key -> value -> 'a -> 'a Lwt.t ) -> 'a -> 'a Lwt.t
val iter_block : ?count:int64 -> ?gt:key -> ?geq:key -> ?lt:key -> ?leq:key -> ( key -> value -> unit ) -> unit Lwt.t
val iter_batch : ?count:int64 -> ?gt:key -> ?geq:key -> ?lt:key -> ?leq:key -> ( (key * value) list -> unit Lwt.t ) -> unit Lwt.t
module Variable : sig ... end