Cats Api Documentation

Version: 1.2.0

cats.labs.crdt

-load

multimethod

dec

(dec owner)

A shortcut for (inc-by counter -1).

decode

(decode data)(decode data format)

Deserialize crdt data type.

Only edn format is supported out of the box. This apo is extensible.

encode

(encode data)(encode data format)

Serialize crdt data type.

Only edn format is supported out of the box. This api is extensible.

inc

(inc owner)

Increment the counter value in 1.

inc-by

(inc-by owner v)

Increment the counter value in v.

ISerializable

protocol

members

-dump

(-dump _)

Get plain representation of the data type.

merge

(merge owner other)

Converge two data structures. Both provided data types should satify the JoinSemiLattice protocol.