Counter.MakeMake returns a mergeable counter using the backend and other parameters as specified by the user.
module Backend : Irmin.KV_makerContent store of counter. All store related operations like branching, cloning, merging, etc are done through this module.
val inc :
?by:int64 ->
?info:Store.Info.f ->
path:Store.path ->
Store.t ->
unit Lwt.tIncrement the counter by the amount specified using by. If no value is specified, then by is assigned the value 1L.
val dec :
?by:int64 ->
?info:Store.Info.f ->
path:Store.path ->
Store.t ->
unit Lwt.tDecrement the counter by the amount specified using by. If no value is specified, then by is assigned the value 1L.
val read : path:Store.path -> Store.t -> int64 Lwt.tRead the value of the counter