package ocsigenserver

  1. Overview
  2. Docs
type 'a t
type store
val open_store : string -> store
val make_persistent : store:store -> name:string -> default:'a -> 'a t Lwt.t
val make_persistent_lazy : store:store -> name:string -> default:(unit -> 'a) -> 'a t Lwt.t
val make_persistent_lazy_lwt : store:store -> name:string -> default:(unit -> 'a Lwt.t) -> 'a t Lwt.t
val get : 'a t -> 'a Lwt.t
val set : 'a t -> 'a -> unit Lwt.t
type 'value table
val table_name : 'value table -> string Lwt.t
val open_table : string -> 'value table
val find : 'value table -> string -> 'value Lwt.t
val add : 'value table -> string -> 'value -> unit Lwt.t
val replace_if_exists : 'value table -> string -> 'value -> unit Lwt.t
val remove : 'value table -> string -> unit Lwt.t
val length : 'value table -> int Lwt.t
val iter_step : (string -> 'a -> unit Lwt.t) -> 'a table -> unit Lwt.t
val iter_table : (string -> 'a -> unit Lwt.t) -> 'a table -> unit Lwt.t
val fold_step : (string -> 'a -> 'b -> 'b Lwt.t) -> 'a table -> 'b -> 'b Lwt.t
val fold_table : (string -> 'a -> 'b -> 'b Lwt.t) -> 'a table -> 'b -> 'b Lwt.t
val iter_block : (string -> 'a -> unit) -> 'a table -> unit Lwt.t
OCaml

Innovation. Community. Security.