dealing with riak datatypes in postcommit hooks
问题 I am wanting to implement a postcommit hook for riak that decrements a counter in a map in another bucket. However I am having a bit of trouble dealing with the riak datatypes. Here is me attempting from riak console : (riak@127.0.0.1)9>{ok, C} = riak:local_client(). {ok,{riak_client,['riak@127.0.0.1',undefined]}} (riak@127.0.0.1)10>{ok, Obj} = C:get({<<"product">>, <<"default">>}, <<"1">>). {ok,{r_object,{<<"product">>,<<"default">>}, <<"1">>, [{r_content,{dict,5,16,16,8,80,48, {[],[],[],[],