Liking cljdoc? Tell your friends :D

blocks.store.buffer

Logical block storage which buffers new blocks being written to a backing store. Reads return a unified view of the existing and buffered blocks. The buffer can be flushed to write all the new blocks to the backing store.

Logical block storage which buffers new blocks being written to a backing
store. Reads return a unified view of the existing and buffered blocks. The
buffer can be _flushed_ to write all the new blocks to the backing store.
raw docstring

buffer-block-storeclj

(buffer-block-store & {:as opts})

Creates a new buffering block store. If no buffer store is given, defaults to an in-memory store.

Creates a new buffering block store. If no buffer store is given, defaults to
an in-memory store.
sourceraw docstring

clear!clj

(clear! store)

Removes all blocks from the buffer. Returns a summary of the deleted blocks.

Removes all blocks from the buffer. Returns a summary of the deleted blocks.
sourceraw docstring

flush!clj

(flush! store)
(flush! store block-ids)

Flushes the store, writing all buffered blocks to the backing store. Returns a summary of the flushed blocks.

Flushes the store, writing all buffered blocks to the backing store. Returns
a summary of the flushed blocks.
sourceraw docstring

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

× close