Skip to content

Commit 9f069e5

Browse files
mp911dechristophstrobl
authored andcommitted
Apply non-blocking eviction when using Lettuce for RedisCache.
clear, evict and put methods now use asynchronous and non-blocking removal of keys when using the Lettuce Redis driver. RedisCache also supports evictIfPresent to remove cache keys immediately which is a blocking method. Introduce configuration API for RedisCacheWriter. Also, allow configuration of immediate writes to enforce stronger consistency and visibility of cache writes. Closes: #3236 Original Pull Request: #3243
1 parent 8547f61 commit 9f069e5

File tree

7 files changed

+662
-108
lines changed

7 files changed

+662
-108
lines changed

src/main/java/org/springframework/data/redis/cache/BatchStrategies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public long cleanCache(RedisConnection connection, String name, byte[] pattern)
100100
*/
101101
static class Scan implements BatchStrategy {
102102

103-
private final int batchSize;
103+
final int batchSize;
104104

105105
Scan(int batchSize) {
106106
this.batchSize = batchSize;

0 commit comments

Comments
 (0)