public interface BatchStrategy
BatchStrategy to be used with RedisCacheWriter.
Mainly used to clear the cache.
Predefined strategies using the KEYS or SCAN
commands can be found in BatchStrategies.
| Modifier and Type | Method and Description |
|---|---|
long |
cleanCache(RedisConnection connection,
String name,
byte[] pattern)
Remove all keys following the given pattern.
|
long cleanCache(RedisConnection connection, String name, byte[] pattern)
connection - the connection to use. Must not be null.name - The cache name. Must not be null.pattern - The pattern for the keys to remove. Must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.