package irmin-containers

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Counter.MakeSource

Make returns a mergeable counter using the backend and other parameters as specified by the user.

Parameters

Signature

Content store of counter. All store related operations like branching, cloning, merging, etc are done through this module.

Sourceval inc : ?by:int64 -> ?info:Store.Info.f -> path:Store.path -> Store.t -> unit Lwt.t

Increment the counter by the amount specified using by. If no value is specified, then by is assigned the value 1L.

Sourceval dec : ?by:int64 -> ?info:Store.Info.f -> path:Store.path -> Store.t -> unit Lwt.t

Decrement the counter by the amount specified using by. If no value is specified, then by is assigned the value 1L.

Sourceval read : path:Store.path -> Store.t -> int64 Lwt.t

Read the value of the counter

OCaml

Innovation. Community. Security.