Question

I am new to both ripple and riak. Does anyone have an idea, how can I set the bucket properties like

n_val
allow_multi

etc using ripple in my code. I don't want to do it via the curl request:

$ curl -v -XPUT -H "Content-Type: application/json" -d '{"props":{"n_val":5}}'
http://127.0.0.1:8098/riak/test
Was it helpful?

Solution 2

Ripple lets you access the buckets in a way shown:

bucket = Ripple.client.bucket("bucket_name")
bucket.allow_mult = true

OTHER TIPS

You can query and update bucket properties using the Riak Ruby client, which is used by Ripple.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top