Skip to content

Commit 8b485b6

Browse files
kinsershmarcusdacoregio
authored andcommitted
Doc cautions about index repo with Redis Cluster
Due to spring-projects/spring-data-redis#1111, applications can suffer from missing important Keyspace events as described at #2230. This adds a caution to the docs to help others avoid running into this problem and suggests an alternative. Mitigates #2230.
1 parent 0db644b commit 8b485b6

File tree

1 file changed

+2
-0
lines changed
  • spring-session-docs/modules/ROOT/pages/configuration

1 file changed

+2
-0
lines changed

spring-session-docs/modules/ROOT/pages/configuration/redis.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ For example, it may create indexes based on session attributes like user ID or l
122122
These indexes allow for efficient querying of sessions based on specific criteria, enhancing performance and enabling advanced session management features.
123123
In addition to that, `RedisIndexedSessionRepository` also supports session expiration and deletion.
124124

125+
CAUTION: When using `RedisIndexedSessionRepository` with Redis Cluster you must be aware that https://github.com/spring-projects/spring-data-redis/issues/1111[it only subscribe to events from one random redis node in the cluster], which can cause some session indexes not being cleaned up if the event happened in a different node.
126+
125127
=== Configuring the `RedisSessionRepository`
126128

127129
==== Using Spring Boot Properties

0 commit comments

Comments
 (0)