Irmin_containers.CounterThe 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.
module type S = sig ... endCounter signature
module Make (Backend : Irmin.KV_maker) : SMake returns a mergeable counter using the backend and other parameters as specified by the user.
Counter instantiated using the FS backend provided by Irmin_fs_unix
Counter instantiated using the in-memory backend provided by Irmin_mem