Skip to content

Commit 9b39c09

Browse files
committed
Polishing.
Add support for Jedis Streams using JedisCluster. Add fromMany(…) for non-pipelined usage to JedisInvoker. Reformat code, add author tags. Extract Jedis-specific stream type converters to StreamConverters. Properly convert StreamEntry and StreamEntryID into list/map. Update tests. See #1711 Original pull request: #1977.
1 parent a31c739 commit 9b39c09

18 files changed

+938
-402
lines changed

Diff for: src/main/asciidoc/new-features.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This section briefly covers items that are new and noteworthy in the latest rele
1010
* ACL authentication support for Redis Standalone, Redis Cluster and Master/Replica.
1111
* Password support for Redis Sentinel using Jedis.
1212
* Support for `ZREVRANGEBYLEX` and `ZLEXCOUNT` commands.
13+
* Support for Stream Commands using Jedis.
1314

1415
[[new-in-2.3.0]]
1516
== New in Spring Data Redis 2.3

Diff for: src/main/asciidoc/reference/redis-streams.adoc

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ While Pub/Sub relies on the broadcasting of transient messages (i.e. if you don'
1616

1717
The `org.springframework.data.redis.connection` and `org.springframework.data.redis.stream` packages provide the core functionality for Redis Streams.
1818

19-
NOTE: Redis Stream support is currently only available through the <<redis:connectors:lettuce, Lettuce client>> as it is not yet supported by <<redis:connectors:jedis, Jedis>>.
20-
2119
[[redis.streams.send]]
2220
== Appending
2321

Diff for: src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterConnection.java

+9
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,15 @@ public RedisSetCommands setCommands() {
303303
return new JedisClusterSetCommands(this);
304304
}
305305

306+
/*
307+
* (non-Javadoc)
308+
* @see org.springframework.data.redis.connection.RedisConnection#streamCommands()
309+
*/
310+
@Override
311+
public RedisStreamCommands streamCommands() {
312+
return new JedisClusterStreamCommands(this);
313+
}
314+
306315
/*
307316
* (non-Javadoc)
308317
* @see org.springframework.data.redis.connection.RedisConnection#zSetCommands()

0 commit comments

Comments
 (0)