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:
|
Or use it as a maven dependency:
|
||||||
|
|
||||||
<dependency>
|
```xml
|
||||||
<groupId>redis.clients</groupId>
|
<dependency>
|
||||||
<artifactId>jedis</artifactId>
|
<groupId>redis.clients</groupId>
|
||||||
<version>2.0.0</version>
|
<artifactId>jedis</artifactId>
|
||||||
<type>jar</type>
|
<version>2.0.0</version>
|
||||||
<scope>compile</scope>
|
<type>jar</type>
|
||||||
</dependency>
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
To use it just:
|
To use it just:
|
||||||
|
|
||||||
Jedis jedis = new Jedis("localhost");
|
```java
|
||||||
jedis.set("foo", "bar");
|
Jedis jedis = new Jedis("localhost");
|
||||||
String value = jedis.get("foo");
|
jedis.set("foo", "bar");
|
||||||
|
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