Merge pull request #166 from kevinsawicki/patch-1
Fence code blocks in README with languages.
This commit is contained in:
25
README.md
25
README.md
@@ -48,20 +48,23 @@ You can download the latest build at:
|
||||
|
||||
Or use it as a maven dependency:
|
||||
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
To use it just:
|
||||
|
||||
Jedis jedis = new Jedis("localhost");
|
||||
jedis.set("foo", "bar");
|
||||
String value = jedis.get("foo");
|
||||
```java
|
||||
Jedis jedis = new Jedis("localhost");
|
||||
jedis.set("foo", "bar");
|
||||
String value = jedis.get("foo");
|
||||
```
|
||||
|
||||
For more usage examples check the tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user