@@ -52,56 +52,18 @@ You can download the latest build at:
5252
5353Or use it as a maven dependency:
5454
55- ### Official Releases
56-
5755``` xml
5856<dependency >
5957 <groupId >redis.clients</groupId >
6058 <artifactId >jedis</artifactId >
61- <version >3.7 .0</version >
59+ <version >4.0 .0</version >
6260</dependency >
6361```
6462
65- ### Snapshots
66-
67- ``` xml
68- <repositories >
69- <repository >
70- <id >snapshots-repo</id >
71- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
72- </repository >
73- </repositories >
74- ```
75-
76- and
77-
78- ``` xml
79- <dependencies >
80- <dependency >
81- <groupId >redis.clients</groupId >
82- <artifactId >jedis</artifactId >
83- <version >4.0.0-SNAPSHOT</version >
84- </dependency >
85- </dependencies >
86- ```
87-
88- or, for upcoming minor release
89-
90- ``` xml
91- <dependencies >
92- <dependency >
93- <groupId >redis.clients</groupId >
94- <artifactId >jedis</artifactId >
95- <version >3.8.0-SNAPSHOT</version >
96- </dependency >
97- </dependencies >
98- ```
99-
100-
10163To use it just:
10264
10365``` java
104- Jedis jedis = new Jedis (" localhost" );
66+ Jedis jedis = new Jedis (" localhost" , 6379 );
10567jedis. set(" foo" , " bar" );
10668String value = jedis. get(" foo" );
10769```
@@ -120,8 +82,8 @@ Redis cluster [specification](http://redis.io/topics/cluster-spec) is implemente
12082
12183``` java
12284Set<HostAndPort > jedisClusterNodes = new HashSet<HostAndPort > ();
123- // Jedis Cluster will attempt to discover cluster nodes automatically
12485jedisClusterNodes. add(new HostAndPort (" 127.0.0.1" , 7379 ));
86+ // Jedis Cluster will attempt to discover cluster nodes automatically
12587JedisCluster jc = new JedisCluster (jedisClusterNodes);
12688jc. set(" foo" , " bar" );
12789String value = jc. get(" foo" );
0 commit comments