Fence code blocks in README with languages.
This commit is contained in:
@@ -48,6 +48,7 @@ You can download the latest build at:
|
|||||||
|
|
||||||
Or use it as a maven dependency:
|
Or use it as a maven dependency:
|
||||||
|
|
||||||
|
```xml
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>redis.clients</groupId>
|
<groupId>redis.clients</groupId>
|
||||||
<artifactId>jedis</artifactId>
|
<artifactId>jedis</artifactId>
|
||||||
@@ -55,13 +56,15 @@ Or use it as a maven dependency:
|
|||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
To use it just:
|
To use it just:
|
||||||
|
|
||||||
|
```java
|
||||||
Jedis jedis = new Jedis("localhost");
|
Jedis jedis = new Jedis("localhost");
|
||||||
jedis.set("foo", "bar");
|
jedis.set("foo", "bar");
|
||||||
String value = jedis.get("foo");
|
String value = jedis.get("foo");
|
||||||
|
```
|
||||||
|
|
||||||
For more usage examples check the tests.
|
For more usage examples check the tests.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user