Manage all state changes and access to state of durable store.
Manage all state changes and access to state of durable store.
(db->stored db flush?)
Maps memory db to storage layout. Index flushes will add [k v] pairs to pending-writes.
Maps memory db to storage layout. Index flushes will add [k v] pairs to pending-writes.
(get-and-clear-pending-kvs! store)
Retrieves and clears pending key-value pairs from the store's pending-writes atom. Assumes :pending-writes in store's storage holds an atom of a collection of [key value] pairs.
Retrieves and clears pending key-value pairs from the store's pending-writes atom. Assumes :pending-writes in store's storage holds an atom of a collection of [key value] pairs.
(-create-database config opts)
(-database-exists? config)
(-delete-database config)
(stored->db stored-db store)
Constructs in-memory db instance from stored map value.
Constructs in-memory db instance from stored map value.
(write-pending-kvs! store kvs sync?)
Writes a collection of key-value pairs to the store. Handles synchronous and asynchronous writes. Assumes it's called within a go-try- block if sync? is false.
Writes a collection of key-value pairs to the store. Handles synchronous and asynchronous writes. Assumes it's called within a go-try- block if sync? is false.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close