Class RedissonCache

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

    public class RedissonCache
    extends Object
    implements org.springframework.cache.Cache
    Author:
    Nikita Koksharov
    • Method Detail

      • getName

        public String 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​(Object key)
        Specified by:
        get in interface org.springframework.cache.Cache
      • get

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

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

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

        public void evict​(Object 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​(Object key,
                         Callable<T> valueLoader)
        Specified by:
        get in interface org.springframework.cache.Cache
      • fromStoreValue

        protected Object fromStoreValue​(Object storeValue)
      • toStoreValue

        protected Object toStoreValue​(Object userValue)