Allows binary data byte array storage.
Allows binary data byte array storage.
(-bassoc this key val)
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.
(-bget this key locked-cb)
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!
Allows to access a store similar to hash-map in EDN.
Allows to access a store similar to hash-map in EDN.
(-assoc-in this key-vec val)
(-get-in this key-vec)
Returns the value stored described by key-vec or nil if the path is not resolvable.
Returns the value stored described by key-vec or nil if the path is not resolvable.
(-exists? this key)
Checks whether value is in the store.
Checks whether value is in the store.
(-dissoc this key)
(-update-in this key-vec up-fn)
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).
SUBJECT TO CHANGE. Low-Level JSON implementation to give native performance. Might be merged into EDN later, when we find a comparable EDN solution. Assumes all values are JSON.
SUBJECT TO CHANGE. Low-Level JSON implementation to give native performance. Might be merged into EDN later, when we find a comparable EDN solution. Assumes all values are JSON.
(-jassoc-in this key-vec value)
Associates the key-vec to the value, any missing collections for the key-vec (nested maps and vectors) are newly created.
Associates the key-vec to the value, any missing collections for the key-vec (nested maps and vectors) are newly created.
(-jupdate-in this key-vec up-fn)
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).
(-jget-in this key-vec)
Returns the value stored described by key-vec or nil if the path is not resolvable.
Returns the value stored described by key-vec or nil if the path is not resolvable.
Decouples serialization format from storage.
Decouples serialization format from storage.
(-deserialize this write-handlers input-stream)
(-serialize this output-stream read-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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close