Module Ocsipersist_lib.Ref_json
Type-safe persistent references using Deriving_Json for serialisation.
Parameters
module Functorial : Sigs.FUNCTORIALSignature
type 'a tThe type of (persistent or not) references
val ref : ?persistent:string -> 'a Deriving_Json.t -> 'a -> 'a tref ?persistent json default creates a reference. If optional parameter ?persistent is absent, the reference will not be persistent (implemented using OCaml references). Otherwise, the value of persistent will be used as key for the value in the persistent reference table. If the reference already exists, the current value is kept.
val get : 'a t -> 'a Lwt.tGet the value of a reference
val set : 'a t -> 'a -> unit Lwt.tSet the value of a reference