public class JeecgRedisCacheWriter extends Object implements org.springframework.data.redis.cache.RedisCacheWriter
| 构造器和说明 |
|---|
JeecgRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
JeecgRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
java.time.Duration sleepTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clean(String name,
byte[] pattern) |
void |
clearStatistics(String name) |
byte[] |
get(String name,
byte[] key) |
org.springframework.data.redis.cache.CacheStatistics |
getCacheStatistics(String cacheName) |
void |
put(String name,
byte[] key,
byte[] value,
java.time.Duration ttl) |
byte[] |
putIfAbsent(String name,
byte[] key,
byte[] value,
java.time.Duration ttl) |
void |
remove(String name,
byte[] key) |
org.springframework.data.redis.cache.RedisCacheWriter |
withStatisticsCollector(org.springframework.data.redis.cache.CacheStatisticsCollector cacheStatisticsCollector) |
public JeecgRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
public JeecgRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory,
java.time.Duration sleepTime)
public void put(String name, byte[] key, byte[] value, @Nullable java.time.Duration ttl)
put 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic byte[] get(String name, byte[] key)
get 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic byte[] putIfAbsent(String name, byte[] key, byte[] value, @Nullable java.time.Duration ttl)
putIfAbsent 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic void remove(String name, byte[] key)
remove 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic void clean(String name, byte[] pattern)
clean 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic org.springframework.data.redis.cache.CacheStatistics getCacheStatistics(String cacheName)
getCacheStatistics 在接口中 org.springframework.data.redis.cache.CacheStatisticsProviderpublic void clearStatistics(String name)
clearStatistics 在接口中 org.springframework.data.redis.cache.RedisCacheWriterpublic org.springframework.data.redis.cache.RedisCacheWriter withStatisticsCollector(org.springframework.data.redis.cache.CacheStatisticsCollector cacheStatisticsCollector)
withStatisticsCollector 在接口中 org.springframework.data.redis.cache.RedisCacheWriterCopyright © 2023. All rights reserved.