mneme.ks:batch

mneme

ks:batch(fn) -> ok, err

Execute multiple operations in a single transaction

Calls fn(batch) where the batch object supports set, set_integer, set_float, del, and incr methods. All operations share a single write transaction and are committed with one fsync on success. If fn raises an error, the transaction is aborted.