Transition BatchStrategy to interface.
...and use long return type instead of int for cleanCache. Original Pull Request: #2051
This commit is contained in:
@@ -307,7 +307,7 @@ public class DefaultRedisCacheWriterTests {
|
||||
Thread th = new Thread(() -> {
|
||||
|
||||
DefaultRedisCacheWriter writer = new DefaultRedisCacheWriter(connectionFactory, Duration.ofMillis(50),
|
||||
BatchStrategy.keys()) {
|
||||
BatchStrategies.keys()) {
|
||||
|
||||
@Override
|
||||
boolean doCheckLock(String name, RedisConnection connection) {
|
||||
|
||||
@@ -262,7 +262,7 @@ public class RedisCacheTests {
|
||||
}
|
||||
|
||||
RedisCache cache = new RedisCache("cache",
|
||||
RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, BatchStrategy.scan(25)),
|
||||
RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, BatchStrategies.scan(25)),
|
||||
RedisCacheConfiguration.defaultCacheConfig().serializeValuesWith(SerializationPair.fromSerializer(serializer)));
|
||||
|
||||
doWithConnection(connection -> {
|
||||
|
||||
Reference in New Issue
Block a user