Hi,

Trying to use the memory backend via multi.

What I did:
in riak.conf:
storage_backend = multi

Then creating a bucket type:
riak-admin bucket-type create os_cache '{"props": {"write_once": true,"backend":"memory","n_val":2,"r":1,"w":1,"dw":1}}'
riak-admin bucket-type activate os_cache

Then I PUT an object:
curl -v -XPUT -H "Content-Type: application/octet-stream" 'http://localhost:8098/types/os_cache/buckets/os_cache/keys/test1' -d 'test'

Mext, I shut down all of the servers at once, leaving nothing in the cluster, then restarting them.
And a new get for the above URL returns "test".

When I set storage_backend to memory, it works as expected, after a full cluster stop, the bucket is empty.

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to