Liking cljdoc? Tell your friends :D

konserve.impl.defaults

Default implementation of the high level protocol given a binary backing implementation as defined in the storage-layout namespace.

Default implementation of the high level protocol given a binary backing implementation as defined in the storage-layout namespace.
raw docstring

connect-default-storeclj/s

(connect-default-store backing
                       {:keys [default-serializer serializers read-handlers
                               write-handlers buffer-size config opts]
                        :or {default-serializer :FressianSerializer
                             read-handlers (atom {})
                             write-handlers (atom {})
                             buffer-size (* 1024 1024)
                             opts {:sync? false}}})

Create general store in given base of backing store.

Create general store in given base of backing store.
sourceraw docstring

delete-blobclj/s

(delete-blob backing env)

Remove/Delete key-value pair of backing store by given key. If success it will return true.

Remove/Delete key-value pair of backing store by given key. If success it will return true.
sourceraw docstring

get-lockclj/s

(get-lock this store-key env)
source

io-operationclj/s

(io-operation {:keys [backing]}
              serializers
              read-handlers
              write-handlers
              {:keys [key-vec operation default-serializer sync? overwrite?
                      config]
               :as env})

Read/Write blob. For better understanding use the flow-chart of konserve.

Read/Write blob. For better understanding use the flow-chart of konserve.
sourceraw docstring

key->store-keyclj/s

(key->store-key key)
source

list-keysclj/s

(list-keys {:keys [backing]}
           serializers
           read-handlers
           write-handlers
           {:keys [sync? config] :as env})

Return all keys in the store.

Return all keys in the store.
sourceraw docstring

max-lock-attemptsclj/s

source

read-blobclj/s

(read-blob blob
           read-handlers
           serializers
           {:keys [sync? operation locked-cb config _store-key] :as env})

Read meta, edn or binary from blob.

Read meta, edn or binary from blob.
sourceraw docstring

read-headerclj/s

(read-header ac serializers env)
source

store-key->uuid-keyclj/s

(store-key->uuid-key store-key)
source

update-blobclj/s

(update-blob backing
             store-key
             serializer
             write-handlers
             {:keys [key-vec compressor encryptor up-fn up-fn-meta config
                     operation input sync? version]
              :as env}
             [old-meta old-value])

This function writes first the meta-size, then the meta-data and then the actual updated data into the underlying backing store.

This function writes first the meta-size, then the meta-data and then the
actual updated data into the underlying backing store.
sourceraw docstring

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

× close