I'm replacing a session manager from Django/MySQL to Go/Riak. I need to periodically check for expired sessions and delete them.
Any one knows how to delete a register using Riak's javascript/MapReduce using ?
I'm replacing a session manager from Django/MySQL to Go/Riak. I need to periodically check for expired sessions and delete them.
Any one knows how to delete a register using Riak's javascript/MapReduce using ?
You could, in theory, initialize the internal erlang client with {ok,C}=riak:local_connect()
, even inside a map or reduce phase, and then do C:delete(<<"Bucket">>,<<"Key">>).
or whatever it is you need.