Liking cljdoc? Tell your friends :D

jepsen.txn

Manipulates transactions. Transactions are represented as a sequence of micro-operations (mops for short).

Manipulates transactions. Transactions are represented as a sequence of
micro-operations (mops for short).
raw docstring

ext-readsclj

(ext-reads txn)

Given a transaction, returns a map of keys to values for its external reads: values that transaction observed which it did not write itself.

Given a transaction, returns a map of keys to values for its external reads:
values that transaction observed which it did not write itself.
sourceraw docstring

ext-writesclj

(ext-writes txn)

Given a transaction, returns the map of keys to values for its external writes: final values written by the txn.

Given a transaction, returns the map of keys to values for its external
writes: final values written by the txn.
sourceraw docstring

reduce-mopsclj

(reduce-mops f init-state history)

Takes a history of operations, where each operation op has a :value which is a transaction made up of [f k v] micro-ops. Runs a reduction over every micro-op, where the reduction function is of the form (f state op [f k v]). Saves you having to do endless nested reduces.

Takes a history of operations, where each operation op has a :value which is
a transaction made up of [f k v] micro-ops. Runs a reduction over every
micro-op, where the reduction function is of the form (f state op [f k v]).
Saves you having to do endless nested reduces.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close