类 AradinRedisCacheWriter
java.lang.Object
cn.aradin.spring.redis.starter.cache.AradinRedisCacheWriter
- 所有已实现的接口:
org.springframework.data.redis.cache.CacheStatisticsProvider,org.springframework.data.redis.cache.RedisCacheWriter
public class AradinRedisCacheWriter
extends Object
implements org.springframework.data.redis.cache.RedisCacheWriter
自定义RedisCacheWriter扩展默认的org.springframework.data.redis.cache.DefaultRedisCacheWriter实现
实例构造参考 RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory)
- 作者:
- daliu
-
构造器概要
构造器构造器说明AradinRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.data.redis.cache.BatchStrategy batchStrategy, RedisCacheManagerProperties redisCacheManagerProperties) -
方法概要
修饰符和类型方法说明voidvoidclearStatistics(String name) byte[]org.springframework.data.redis.cache.CacheStatisticsgetCacheStatistics(String cacheName) voidbyte[]putIfAbsent(String name, byte[] key, byte[] value, Duration ttl) voidorg.springframework.data.redis.cache.RedisCacheWriterwithStatisticsCollector(org.springframework.data.redis.cache.CacheStatisticsCollector cacheStatisticsCollector)
-
构造器详细资料
-
AradinRedisCacheWriter
public AradinRedisCacheWriter(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.data.redis.cache.BatchStrategy batchStrategy, RedisCacheManagerProperties redisCacheManagerProperties) - 参数:
connectionFactory- must not be null.batchStrategy- must not be null.redisCacheManagerProperties- must not be null.
-
-
方法详细资料
-
put
- 指定者:
put在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
get
- 指定者:
get在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
putIfAbsent
- 指定者:
putIfAbsent在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
remove
- 指定者:
remove在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
clean
- 指定者:
clean在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
getCacheStatistics
- 指定者:
getCacheStatistics在接口中org.springframework.data.redis.cache.CacheStatisticsProvider
-
clearStatistics
- 指定者:
clearStatistics在接口中org.springframework.data.redis.cache.RedisCacheWriter
-
withStatisticsCollector
public org.springframework.data.redis.cache.RedisCacheWriter withStatisticsCollector(org.springframework.data.redis.cache.CacheStatisticsCollector cacheStatisticsCollector) - 指定者:
withStatisticsCollector在接口中org.springframework.data.redis.cache.RedisCacheWriter
-