README.md in etcd-0.2.3 vs README.md in etcd-0.2.4
- old
+ new
@@ -25,12 +25,12 @@
client = Etcd.client(:user_name => 'test', :password => 'pwd') # populates the authentication header for basic HTTP auth with user name and password (useful for proxied connections)
client = Etcd.client(host: '127.0.0.1', port: 4003, allow_redirect: false) # wont let you run sensitive commands on non-leader machines, default is true
```
### Set a key
```ruby
-client.set('/nodes/n1', 1)
+client.set('/nodes/n1', value: 1)
# with ttl
-client.set('/nodes/n2', 2, 4) # sets the ttl to 4 seconds
+client.set('/nodes/n2', value: 2, ttl: 4) # sets the ttl to 4 seconds
```
### Get a key
```ruby
client.get('/nodes/n2').value