类 RedissonCache

java.lang.Object
cn.taketoday.cache.RedissonCache
所有已实现的接口:
cn.taketoday.cache.Cache

public class RedissonCache extends Object implements cn.taketoday.cache.Cache
从以下版本开始:
2019-02-28 18:30
作者:
Nikita Koksharov, TODAY
  • 字段详细资料

    • mapCache

      private org.redisson.api.RMapCache<Object,Object> mapCache
    • map

      private final org.redisson.api.RMap<Object,Object> map
    • config

      private CacheConfig config
    • allowNullValues

      private final boolean allowNullValues
    • hits

      private final AtomicLong hits
    • puts

      private final AtomicLong puts
    • misses

      private final AtomicLong misses
  • 构造器详细资料

    • RedissonCache

      public RedissonCache(org.redisson.api.RMapCache<Object,Object> mapCache, CacheConfig config, boolean allowNullValues)
    • RedissonCache

      public RedissonCache(org.redisson.api.RMap<Object,Object> map, boolean allowNullValues)
  • 方法详细资料

    • getName

      public String getName()
      指定者:
      getName 在接口中 cn.taketoday.cache.Cache
    • getNativeCache

      public org.redisson.api.RMap<?,?> getNativeCache()
      指定者:
      getNativeCache 在接口中 cn.taketoday.cache.Cache
    • get

      public cn.taketoday.cache.Cache.ValueWrapper get(Object key)
      指定者:
      get 在接口中 cn.taketoday.cache.Cache
    • get

      public <T> T get(Object key, Class<T> type)
      指定者:
      get 在接口中 cn.taketoday.cache.Cache
    • put

      public void put(Object key, Object value)
      指定者:
      put 在接口中 cn.taketoday.cache.Cache
    • putIfAbsent

      public cn.taketoday.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
      指定者:
      putIfAbsent 在接口中 cn.taketoday.cache.Cache
    • evict

      public void evict(Object key)
      指定者:
      evict 在接口中 cn.taketoday.cache.Cache
    • clear

      public void clear()
      指定者:
      clear 在接口中 cn.taketoday.cache.Cache
    • toValueWrapper

      private cn.taketoday.cache.Cache.ValueWrapper toValueWrapper(Object value)
    • get

      public <T> T get(Object key, Callable<T> valueLoader)
      指定者:
      get 在接口中 cn.taketoday.cache.Cache
    • putValue

      private <T> Object putValue(Object key, Callable<T> valueLoader, Object value)
    • fromStoreValue

      protected Object fromStoreValue(Object storeValue)
    • toStoreValue

      protected Object toStoreValue(Object userValue)
    • getCacheHits

      long getCacheHits()
      The number of get requests that were satisfied by the cache.
      返回:
      the number of hits
    • getCacheMisses

      long getCacheMisses()
      A miss is a get request that is not satisfied.
      返回:
      the number of misses
    • getCachePuts

      long getCachePuts()
    • addCachePut

      private void addCachePut()
    • addCacheHit

      private void addCacheHit()
    • addCacheMiss

      private void addCacheMiss()