Skip to content

Commit 09f9d8b

Browse files
committed
Refine Redis Repository expiry wording.
Closes #3255
1 parent 6441990 commit 09f9d8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/antora/modules/ROOT/pages/redis/redis-repositories/expirations.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class TimeToLiveOnMethod {
3535
----
3636
====
3737

38-
NOTE: Annotating a property explicitly with `@TimeToLive` reads back the actual `TTL` or `PTTL` value from Redis. -1 indicates that the object has no associated expiration.
38+
NOTE: Annotating a property explicitly with `@TimeToLive` reads back the actual `TTL` or `PTTL` value from Redis. `-1` indicates that the object has no associated expiration.
3939

4040
The repository implementation ensures subscription to https://redis.io/topics/notifications[Redis keyspace notifications] via javadoc:org.springframework.data.redis.listener.RedisMessageListenerContainer[].
4141

@@ -60,8 +60,10 @@ Note that `CONFIG` is disabled on AWS ElastiCache, and enabling the listener lea
6060
To work around this behavior, set the `keyspaceNotificationsConfigParameter` parameter to an empty string.
6161
This prevents `CONFIG` command usage.
6262

63-
NOTE: Redis Pub/Sub messages are not persistent.
63+
NOTE: Redis repositories rely on Pub/Sub messages for residual index cleanup.
64+
Redis Pub/Sub messages are not persistent.
6465
If a key expires while the application is down, the expiry event is not processed, which may lead to secondary indexes containing references to the expired object.
66+
Redis does not allow for expiration of individual entries of a set that is used as secondary index.
6567

6668
NOTE: `@EnableKeyspaceEvents(shadowCopy = OFF)` disable storage of phantom copies and reduces data size within Redis. `RedisKeyExpiredEvent` will only contain the `id` of the expired key.
6769

0 commit comments

Comments
 (0)