Skip to content

Commit

Permalink
Jedis 4.0.0 is released (#2758)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Dec 21, 2021
1 parent c404a85 commit 6aea99e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 42 deletions.
44 changes: 3 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,56 +52,18 @@ You can download the latest build at:

Or use it as a maven dependency:

### Official Releases

```xml
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.7.0</version>
<version>4.0.0</version>
</dependency>
```

### Snapshots

```xml
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
```

and

```xml
<dependencies>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
```

or, for upcoming minor release

```xml
<dependencies>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.8.0-SNAPSHOT</version>
</dependency>
</dependencies>
```


To use it just:

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

```java
Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();
//Jedis Cluster will attempt to discover cluster nodes automatically
jedisClusterNodes.add(new HostAndPort("127.0.0.1", 7379));
//Jedis Cluster will attempt to discover cluster nodes automatically
JedisCluster jc = new JedisCluster(jedisClusterNodes);
jc.set("foo", "bar");
String value = jc.get("foo");
Expand Down
34 changes: 34 additions & 0 deletions docs/jedis-maven.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Use Jedis as a maven dependency:

### Official Releases

```xml
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>4.0.0</version>
</dependency>
```

### Snapshots

```xml
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
```

and

```xml
<dependencies>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>4.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
```
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<packaging>jar</packaging>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.1.0-SNAPSHOT</version>
<name>Jedis</name>
<description>Jedis is a blazingly small and sane Redis java client.</description>
<url>https://github.com/redis/jedis</url>
Expand Down

0 comments on commit 6aea99e

Please sign in to comment.