You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/new-features.adoc
+6-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,12 @@
3
3
4
4
This section briefly covers items that are new and noteworthy in the latest releases.
5
5
6
-
[[new-in-2.7.0]]
6
+
[[new-in-3.0.0]]
7
+
== New in Spring Data Redis 3.0
8
+
9
+
* Upgrade to Jedis 4.1. Jedis 4 imposes certain limitations on transactions and pipelines and commands used in pipelines/transactions, see <<redis:connectors:overview>>.
10
+
11
+
7
12
== New in Spring Data Redis 2.7
8
13
9
14
* Sentinel ACL authentication considering a sentinel-specific username. Setting a username enables username and password authentication requiring Redis 6.
@@ -204,7 +204,7 @@ NOTE: Netty currently supports the epoll (Linux) and kqueue (BSD/macOS) interfac
204
204
[[redis:connectors:jedis]]
205
205
=== Configuring the Jedis Connector
206
206
207
-
https://github.com/xetorthio/jedis[Jedis] is a community-driven connector supported by the Spring Data Redis module through the `org.springframework.data.redis.connection.jedis` package.
207
+
https://github.com/redis/jedis[Jedis] is a community-driven connector supported by the Spring Data Redis module through the `org.springframework.data.redis.connection.jedis` package.
208
208
209
209
210
210
.Add the following to the pom.xml files `dependencies` element:
@@ -223,7 +223,6 @@ https://github.com/xetorthio/jedis[Jedis] is a community-driven connector suppor
223
223
</dependencies>
224
224
----
225
225
226
-
227
226
In its simplest form, the Jedis configuration looks as follow:
228
227
229
228
[source,java]
@@ -288,27 +287,27 @@ For dealing with high-availability Redis, Spring Data Redis has support for http
288
287
[source,java]
289
288
----
290
289
/**
291
-
* Jedis
290
+
* Lettuce
292
291
*/
293
292
@Bean
294
-
public RedisConnectionFactory jedisConnectionFactory() {
293
+
public RedisConnectionFactory lettuceConnectionFactory() {
295
294
RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration()
296
295
.master("mymaster")
297
296
.sentinel("127.0.0.1", 26379)
298
297
.sentinel("127.0.0.1", 26380);
299
-
return new JedisConnectionFactory(sentinelConfig);
298
+
return new LettuceConnectionFactory(sentinelConfig);
300
299
}
301
300
302
301
/**
303
-
* Lettuce
302
+
* Jedis
304
303
*/
305
304
@Bean
306
-
public RedisConnectionFactory lettuceConnectionFactory() {
305
+
public RedisConnectionFactory jedisConnectionFactory() {
307
306
RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration()
308
307
.master("mymaster")
309
308
.sentinel("127.0.0.1", 26379)
310
309
.sentinel("127.0.0.1", 26380);
311
-
return new LettuceConnectionFactory(sentinelConfig);
310
+
return new JedisConnectionFactory(sentinelConfig);
312
311
}
313
312
----
314
313
@@ -400,9 +399,9 @@ For cases where you need a certain template view, declare the view as a dependen
0 commit comments