-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
in: cacheRedisCache and CacheManagerRedisCache and CacheManagertype: enhancementA general enhancementA general enhancement
Description
eyison opened DATAREDIS-1151 and commented
when I use clean
method in class DefaultRedisCacheWriter
,it will excute keys
command which is block,it may take a lot of time and cause other commands time out
Affects: 2.1.17 (Lovelace SR17), 2.2.7 (Moore SR7), 2.3 GA (Neumann)
Reference URL:
spring-data-redis/src/main/java/org/springframework/data/redis/cache/DefaultRedisCacheWriter.java
Line 182 in 2bcb06a
byte[][] keys = Optional.ofNullable(connection.keys(pattern)).orElse(Collections.emptySet()) |
Issue Links:
- DATAREDIS-1113 Use SCAN instead KEYS when clean cache
("is duplicated by") - DATAREDIS-1176 org.springframework.data.redis.cache.DefaultRedisCacheWriter#clean method may ruin performance
("is duplicated by") - DATAREDIS-1152 change clean method
keys
command toscan
in DefaultRedisCacheWriter
("is duplicated by")
Referenced from: pull request #532
1 votes, 4 watchers
Metadata
Metadata
Assignees
Labels
in: cacheRedisCache and CacheManagerRedisCache and CacheManagertype: enhancementA general enhancementA general enhancement