node client for etcd v2 that adheres to waitIndex for watching.
var etcdx = ;var client = ;clientclient;client;
$ npm install etcdx
set the following options for further requests to the etcd server:
watch(key, recursive, trigger)
run 'trigger' each time a value at or below 'key' changes
'recursive' controls how deep we are watching
this function looks at the global etcd waitIndex in case a value has changed in-between our watch requests
return the value of 'key'
set(key, value, done)
set the value of 'key'
set_ttl(key, value, ttl, done)
set the value of 'key' for 'ttl' seconds
ls(key, recursive, done)
list the entries below 'key' - recursive follows nested directories
create a directory (with no value) at 'key'
remove all values below key