Skip to content

Commit

Permalink
update the README.md ....
Browse files Browse the repository at this point in the history
  • Loading branch information
adohe committed Apr 2, 2015
1 parent 4a00a5d commit 632e2d5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ A more powerful and stable Java client library for the awesome etcd, a highly av
<dependency>
<groupId>com.xqbase</groupId>
<artifactId>etcd4j</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
```
### Gradle

```
compile 'com.xqbase:etcd4j:1.1'
compile 'com.xqbase:etcd4j:1.2'
```
## Usage

Expand All @@ -28,14 +28,14 @@ EtcdClient client = new EtcdClient(URI.create("http://127.0.0.1:4001"));
String key = "/message";
// set the key
EtcdResponse response = client.set(key, "beepboop");
Assert.assertEquals("set", response.action);
Assert.assertEquals("beepboop", response.node.value);
client.set(key, "beepboop");
// get the value of the key
response = client.get(key);
Assert.assertEquals("beepboop", response.node.value);
String value = client.get(key);
Assert.assertEquals("beepboop", value);
// delete the key
response = client.delete(key);
client.delete(key);
value = client.get(key);
Assert.assertNull(value);
```
## Licence

Expand Down

0 comments on commit 632e2d5

Please sign in to comment.