Class RedissonCache

  • All Implemented Interfaces:
    org.springframework.cache.Cache

    public class RedissonCache
    extends 
    implements org.springframework.cache.Cache
    Author:
    Nikita Koksharov
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.cache.Cache

        org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper
    • Constructor Summary

      Constructors 
      Constructor Description
      ,​> map, boolean allowNullValues)  
      ,​> mapCache, CacheConfig config, boolean allowNullValues)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      void  key)  
      protected  storeValue)  
      org.springframework.cache.Cache.ValueWrapper  key)  
      <T> T  key, <T> type)  
      <T> T  key, <T> valueLoader)  
      getName()  
      RMap<?,​?> getNativeCache()  
      void  key,  value)  
      org.springframework.cache.Cache.ValueWrapper  key,  value)  
      protected  userValue)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
      • Methods inherited from interface org.springframework.cache.Cache

        evictIfPresent, invalidate
    • Constructor Detail

      • RedissonCache

        public RedissonCache​(,​> mapCache,
                             CacheConfig config,
                             boolean allowNullValues)
      • RedissonCache

        public RedissonCache​(,​> map,
                             boolean allowNullValues)
    • Method Detail

      • getName

        public  getName()
        Specified by:
        getName in interface org.springframework.cache.Cache
      • getNativeCache

        public RMap<?,​?> getNativeCache()
        Specified by:
        getNativeCache in interface org.springframework.cache.Cache
      • get

        public org.springframework.cache.Cache.ValueWrapper get​( key)
        Specified by:
        get in interface org.springframework.cache.Cache
      • get

        public <T> T get​( key,
                         <T> type)
        Specified by:
        get in interface org.springframework.cache.Cache
      • put

        public void put​( key,
                         value)
        Specified by:
        put in interface org.springframework.cache.Cache
      • putIfAbsent

        public org.springframework.cache.Cache.ValueWrapper putIfAbsent​( key,
                                                                         value)
        Specified by:
        putIfAbsent in interface org.springframework.cache.Cache
      • evict

        public void evict​( key)
        Specified by:
        evict in interface org.springframework.cache.Cache
      • clear

        public void clear()
        Specified by:
        clear in interface org.springframework.cache.Cache
      • get

        public <T> T get​( key,
                         <T> valueLoader)
        Specified by:
        get in interface org.springframework.cache.Cache
      • fromStoreValue

        protected  fromStoreValue​( storeValue)
      • toStoreValue

        protected  toStoreValue​( userValue)