Liking cljdoc? Tell your friends :D

konserve.protocols


PBinaryKeyValueStoreclj/sprotocol

Allows binary data byte array storage.

Allows binary data byte array storage.

-bassocclj/s

(-bassoc this key meta-up-fn val opts)

Copies given value (InputStream, Reader, File, byte[] or String on JVM, Blob in JavaScript) under key in the store.

Copies given value (InputStream, Reader, File, byte[] or String on JVM, Blob in JavaScript) under key in the store.

-bgetclj/s

(-bget this key locked-cb opts)

Calls locked-cb with a platform specific binary representation inside the lock, e.g. wrapped InputStream on the JVM and Blob in JavaScript. You need to properly close/dispose the object when you are done!

Calls locked-cb with a platform specific binary representation inside the lock, e.g. wrapped InputStream on the JVM and Blob in JavaScript. You need to properly close/dispose the object when you are done!
sourceraw docstring

PEDNKeyValueStoreclj/sprotocol

Allows to access a store similar to hash-map in EDN.

Allows to access a store similar to hash-map in EDN.

-assoc-inclj/s

(-assoc-in this key-vec meta-up-fn val opts)

-dissocclj/s

(-dissoc this key opts)

-exists?clj/s

(-exists? this key opts)

Checks whether value is in the store.

Checks whether value is in the store.

-get-inclj/s

(-get-in this key-vec not-found opts)

Returns the value stored described by key or nil if the path is not resolvable.

Returns the value stored described by key or nil if the path is not resolvable.

-get-metaclj/s

(-get-meta this key opts)

Fetch only metadata for the key.

Fetch only metadata for the key.

-update-inclj/s

(-update-in this key-vec meta-up-fn up-fn opts)

Updates a position described by key-vec by applying up-fn and storing the result atomically. Returns a vector [old new] of the previous value and the result of applying up-fn (the newly stored value).

Updates a position described by key-vec by applying up-fn and storing the result atomically. Returns a vector [old new] of the previous value and the result of applying up-fn (the newly stored value).
sourceraw docstring

PKeyIterableclj/sprotocol

Allows lazy iteration of keys in this store.

Allows lazy iteration of keys in this store.

-keysclj/s

(-keys this opts)

Return a channel that will continuously yield keys in this store.

Return a channel that will continuously yield keys in this store.
sourceraw docstring

PStoreSerializerclj/sprotocol

Decouples serialization format from storage.

Decouples serialization format from storage.

-deserializeclj/s

(-deserialize this read-handlers input-stream)

-serializeclj/s

(-serialize this output-stream write-handlers val)

For the JVM we use streams, while for JavaScript we return the value for now.

For the JVM we use streams, while for JavaScript we return the value for now.
sourceraw docstring

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

× close