package irmin-containers

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

Module Irmin_containers.CounterSource

The implementation of an int64 counter. This module supports operations to increment, decrement and read the value of the counter.

Merge semantics is as follows: if old is the value of the LCA and v1 and v2 are the current values, then the merged value is v1 + v2 - old.

Sourcemodule type S = sig ... end

Counter signature

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

Sourcemodule FS : S

Counter instantiated using the FS backend provided by Irmin_fs_unix

Sourcemodule Mem : S

Counter instantiated using the in-memory backend provided by Irmin_mem

OCaml

Innovation. Community. Security.