Move "Use Jedis Instead of Lettuce" How-to

See gh-26262
This commit is contained in:
Phillip Webb
2021-05-18 11:32:55 -07:00
parent 499a29c415
commit e08d4f1fe6
3 changed files with 10 additions and 5 deletions

View File

@@ -2845,7 +2845,7 @@ howto.traditional-deployment.weblogic
# 2 == Use Jedis Instead of Lettuce
howto-use-jedis-instead-of-lettuce=\
howto.jedis-instead-of-lettuce
howto.nosql.jedis-instead-of-lettuce
# 2 == Use Testcontainers for integration testing
howto-testcontainers=\

View File

@@ -48,5 +48,3 @@ include::howto/testing.adoc[]
include::howto/build.adoc[]
include::howto/traditional-deployment.adoc[]
include::howto/jedis-instead-of-lettuce.adoc[]

View File

@@ -1,5 +1,12 @@
[[howto.jedis-instead-of-lettuce]]
== Use Jedis Instead of Lettuce
[[howto.nosql]]
== NoSQL
Spring Boot offers a number of starters that support NoSQL technologies.
This section answers questions that arise from using NoSQL with Spring Boot.
[[howto.nosql.jedis-instead-of-lettuce]]
=== Use Jedis Instead of Lettuce
By default, the Spring Boot starter (`spring-boot-starter-data-redis`) uses https://github.com/lettuce-io/lettuce-core/[Lettuce].
You need to exclude that dependency and include the https://github.com/xetorthio/jedis/[Jedis] one instead.
Spring Boot manages both of these dependencies so you can switch to Jedis without specifying a version.