Skip to content

Commit 6aea99e

Browse files
authored
Jedis 4.0.0 is released (#2758)
1 parent c404a85 commit 6aea99e

File tree

3 files changed

+38
-42
lines changed

3 files changed

+38
-42
lines changed

README.md

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -52,56 +52,18 @@ You can download the latest build at:
5252

5353
Or 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-
10163
To use it just:
10264

10365
```java
104-
Jedis jedis = new Jedis("localhost");
66+
Jedis jedis = new Jedis("localhost", 6379);
10567
jedis.set("foo", "bar");
10668
String value = jedis.get("foo");
10769
```
@@ -120,8 +82,8 @@ Redis cluster [specification](http://redis.io/topics/cluster-spec) is implemente
12082

12183
```java
12284
Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();
123-
//Jedis Cluster will attempt to discover cluster nodes automatically
12485
jedisClusterNodes.add(new HostAndPort("127.0.0.1", 7379));
86+
//Jedis Cluster will attempt to discover cluster nodes automatically
12587
JedisCluster jc = new JedisCluster(jedisClusterNodes);
12688
jc.set("foo", "bar");
12789
String value = jc.get("foo");

docs/jedis-maven.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Use Jedis as a maven dependency:
2+
3+
### Official Releases
4+
5+
```xml
6+
<dependency>
7+
<groupId>redis.clients</groupId>
8+
<artifactId>jedis</artifactId>
9+
<version>4.0.0</version>
10+
</dependency>
11+
```
12+
13+
### Snapshots
14+
15+
```xml
16+
<repositories>
17+
<repository>
18+
<id>snapshots-repo</id>
19+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
20+
</repository>
21+
</repositories>
22+
```
23+
24+
and
25+
26+
```xml
27+
<dependencies>
28+
<dependency>
29+
<groupId>redis.clients</groupId>
30+
<artifactId>jedis</artifactId>
31+
<version>4.1.0-SNAPSHOT</version>
32+
</dependency>
33+
</dependencies>
34+
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<packaging>jar</packaging>
1010
<groupId>redis.clients</groupId>
1111
<artifactId>jedis</artifactId>
12-
<version>4.0.0-SNAPSHOT</version>
12+
<version>4.1.0-SNAPSHOT</version>
1313
<name>Jedis</name>
1414
<description>Jedis is a blazingly small and sane Redis java client.</description>
1515
<url>https://github.com/redis/jedis</url>

0 commit comments

Comments
 (0)