Hey All,
Short and sweet for today's recap.
Best,
Mark
------
Mark Phillips
Community Manager
wiki.basho.com
twitter.com/pharkmillups
------
Riak Recap for 4/12-4/13
1) Is there a way to list all the values in a bucket / key via the
erlang client? (from niinj via IRC)
A ----- Yes. Give these a try:
%% List all the keys in the bucket
{ok, Keys} = Client:list_keys(<<"bucket">>).
%% Stream keys back to the process asynchronously
{ok, ReqId} = Client:stream_list_keys(<<"bucket">>),
receive_keys(ReqId).
%% elsewhere:
receive_keys(ReqId) ->
receive %% Do this in a tail-recursive "loop"
{ReqId, {keys, Keys}} -> do_something, receive_keys(ReqId);
{ReqId, done} -> ok;
_ -> receive_keys(ReqId)
end.
%% Get the values (siblings) of an object
Object = Client:get(<<"bucket">>, <<"key">>, 2),
Values = riak_object:get_values(Object).
2) Sean Cribbs gave a great preso entitled "Riak and Ripple" at the
the Boston Ruby Meetup last night in Cambridge, MA. You can get the
slides here:
http://www.slideshare.net/seancribbs/introducing-riak-and-ripple
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com