类 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

      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

      public void put(String name, byte[] key, byte[] value, @Nullable Duration ttl)
      指定者:
      put 在接口中 org.springframework.data.redis.cache.RedisCacheWriter
    • get

      public byte[] get(String name, byte[] key)
      指定者:
      get 在接口中 org.springframework.data.redis.cache.RedisCacheWriter
    • putIfAbsent

      public byte[] putIfAbsent(String name, byte[] key, byte[] value, @Nullable Duration ttl)
      指定者:
      putIfAbsent 在接口中 org.springframework.data.redis.cache.RedisCacheWriter
    • remove

      public void remove(String name, byte[] key)
      指定者:
      remove 在接口中 org.springframework.data.redis.cache.RedisCacheWriter
    • clean

      public void clean(String name, byte[] pattern)
      指定者:
      clean 在接口中 org.springframework.data.redis.cache.RedisCacheWriter
    • getCacheStatistics

      public org.springframework.data.redis.cache.CacheStatistics getCacheStatistics(String cacheName)
      指定者:
      getCacheStatistics 在接口中 org.springframework.data.redis.cache.CacheStatisticsProvider
    • clearStatistics

      public void clearStatistics(String name)
      指定者:
      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