clojurewerkz.welle.buckets

create

deprecated

(create & args)
The same as update. This name reveals the intent a bit better in some cases.
Kept for backwards compatibility, will be removed in the future

fetch

(fetch client bucket-name)
Fetches bucket properties

keys-in

(keys-in client bucket-name)
Returns list of keys in the bucket. With any non-trivial number of keys, this is a VERY EXPENSIVE operation
and typically should be avoided

list

(list client)
Returns buckets in the cluster as a set

update

(update client bucket-name)(update client bucket-name options)
Updates bucket properties.

Quorum values (r, w, dw and so on) can be integer, Quora or Quorum instances

Options:

* allow-siblings
* last-write-wins
* n-val (default: 3)
* r (quorum value)
* pr (quorum value)
* w (quorum value)
* dw (quorum value)
* pw (quorum value)
* rw (quorum value)
* not-found-ok
* basic-quorum
* enable-search (default: false)
* backend
* pre-commit-hooks (a collection of pairs ["erlang_module", "fn_name"])
* post-commit-hooks (a collection of pairs ["erlang_module", "fn_name"])
* small-vclock
* big-vclock
* young-vclock
* old-vclock