(add-ignored-key! value-store k)
Adds a key to the set of those ignored by the cache.
Adds a key to the set of those ignored by the cache.
(create-key value-store k v)
Writes the value v to the key k, provided that the key does not already exist.
Writes the value v to the key k, provided that the key does not already exist.
(get-ignored-keys value-store)
Returns a collection of keys ignored by the cache (if applicable).
Returns a collection of keys ignored by the cache (if applicable).
(get-partition value-store)
Provides the string identifier this value store uses for multi-tenant partitioning.
Provides the string identifier this value store uses for multi-tenant partitioning.
(get-value value-store k)
Fetches the desired value. Returns a tessera that will contain the value. If an error occurs, the error will be re-thrown on dereference.
Fetches the desired value. Returns a tessera that will contain the value. If an error occurs, the error will be re-thrown on dereference.
(get-values value-store ks)
Fetches the desired values. Returns a tessera that will contain a map k->v. If an error occurs, the error will be re-thrown on dereference.
Fetches the desired values. Returns a tessera that will contain a map k->v. If an error occurs, the error will be re-thrown on dereference.
(put-value value-store k v)
Stores the provided value under the specified key. Returns a tessera containing true/false for success/failure. If an error occurs, the error will be re-thrown on dereference.
Stores the provided value under the specified key. Returns a tessera containing true/false for success/failure. If an error occurs, the error will be re-thrown on dereference.
(put-values value-store kvs)
Stores the provided keys and values. Returns a tessera containing a map k->boolean indicating success/failure for each. If an error occurs, the error will be re-thrown on dereference.
Stores the provided keys and values. Returns a tessera containing a map k->boolean indicating success/failure for each. If an error occurs, the error will be re-thrown on dereference.
(remove-ignored-key! value-store k)
Removes a key from the set of those ignored by the cache.
Removes a key from the set of those ignored by the cache.
(remove-key value-store k)
Removes entry for the key. Returns a tessera containing true/false for success/failure. Removing a non-existent value always succeeds.
Removes entry for the key. Returns a tessera containing true/false for success/failure. Removing a non-existent value always succeeds.
(remove-keys value-store ks)
Removes multiple entries. Returns a tessera containing a map k->boolean indicating success/failure for each. Removing a non-existent value always succeeds. If an error occurs, the error will be re-thrown on dereference.
Removes multiple entries. Returns a tessera containing a map k->boolean indicating success/failure for each. Removing a non-existent value always succeeds. If an error occurs, the error will be re-thrown on dereference.
(replace-value value-store k old new)
Atomically replaces an existing entry via compare and swap, given expected previous value and provided new value. Returns a Tessera containing true/false for success/failure. If an error occurs, the error will be re-thrown on dereference.
Atomically replaces an existing entry via compare and swap, given expected previous value and provided new value. Returns a Tessera containing true/false for success/failure. If an error occurs, the error will be re-thrown on dereference.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close