example of usage
Opened this issue · 7 comments
Is there any documentation on how to use plumtree?
+1, would be awesome.
+1
Look at the tests? I know it's not the best answer but, hope this helps:
> plumtree:start().
...join assuming other node also has had `plumtree:start/0` executed
> plumtree_peer_service:join(OtherNode).
> plumtree_metadata:put({some, prefix}, <<"mykey">>, <<"myvalue">>).
...on other node...
> plumtree_metadata:get({some, prefix}, <<"mykey">>).
This documentation from the original Cluster Metadata (Riak's usage of
plumtree before it was extracted to this library) is available here:
https://gist.github.com/jrwest/d290c14e1c472e562548. Hopefully it can be
helpful. Should probably move it somewhere better than my gists...
On Mon, Jun 8, 2015 at 6:55 PM, Parnell Springmeyer <
notifications@github.com> wrote:
Look at the tests? I know it's not the best answer but, hope this helps:
plumtree:start().
...join assuming other node also has hadplumtree:start/0
executed
plumtree_peer_service:join(OtherNode).
plumtree_metadata:put({some, prefix}, <<"mykey">>, <<"myvalue">>).
...on other node...
plumtree_metadata:get({some, prefix}, <<"mykey">>).—
Reply to this email directly or view it on GitHub
#10 (comment).