This isn't currently built into the client, but you can reuse the function we 
use internally, riak_core_util:unique_id_62() located here:
https://github.com/basho/riak_core/blob/master/src/riak_core_util.erl#L131

Grant Schofield
Developer Advocate
Basho Technologies, Inc.

On Dec 15, 2010, at 11:49 AM, carson li wrote:

> hey,
> 
> i have a quick question about auto generating keys.
> i know using curl post, all you have to do is specify the bucket, and riak 
> will generate the key for you.
> 
> is it possible for the erlang library to generate the key for you? if not, is 
> there an easy to to generate unique keys using some built in function? 
> any leads will help, thanks.
> 
> -- 
> Carson Li
> Liquid Analytics
> carson...@liquidanalytics.com
> 647-273-1024
> 
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

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

Reply via email to