Supported the following commands
get <options> <path>- get value by pathset <options> <path> <value>- set value by pathexists <options> <path>- check the value by path existsdel <options> <path>- delete existing value by pathsub <options> <path>- subscribe to the path when the value will updateunsub <options> <path>- remove the subscription from the pathexit- close socket connection on the server side
where is options
--routing-key=<value>- routing key matcher for the client
You can start master-master replica set with the following command
docker-compose upThen you can set value on the first master replica
> nc 127.0.0.1 3311
{"name":"tarantool-vs-zookeeper","version":"1.0"}
> set /alice/lock new-value
{"latency":3,"command":"set","last_modified":1682502915785,"value":"new-value","key":"\/alice\/lock","updated_count":2}
> exitThen you can get the value on the second master replica
> nc 127.0.0.1 3312
{"name":"tarantool-vs-zookeeper","version":"1.0"}
> get /alice/lock
{"latency":0,"last_modified":1682502915785,"value":"new-value","key":"\/alice\/lock","updated_count":2}
> exit