Class RedissonCache

  • All Implemented Interfaces:
    org.apache.ibatis.cache.Cache

    public class RedissonCache
    extends Object
    implements org.apache.ibatis.cache.Cache
    MyBatis cache implementation
    Author:
    Nikita Koksharov
    • Constructor Detail

      • RedissonCache

        public RedissonCache​(String id)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.ibatis.cache.Cache
      • putObject

        public void putObject​(Object o,
                              Object o1)
        Specified by:
        putObject in interface org.apache.ibatis.cache.Cache
      • getObject

        public Object getObject​(Object o)
        Specified by:
        getObject in interface org.apache.ibatis.cache.Cache
      • removeObject

        public Object removeObject​(Object o)
        Specified by:
        removeObject in interface org.apache.ibatis.cache.Cache
      • clear

        public void clear()
        Specified by:
        clear in interface org.apache.ibatis.cache.Cache
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.apache.ibatis.cache.Cache
      • setTimeToLive

        public void setTimeToLive​(long timeToLive)
      • setMaxIdleTime

        public void setMaxIdleTime​(long maxIdleTime)
      • setMaxSize

        public void setMaxSize​(int maxSize)
      • getReadWriteLock

        public ReadWriteLock getReadWriteLock()
        Specified by:
        getReadWriteLock in interface org.apache.ibatis.cache.Cache
      • setRedissonConfig

        public void setRedissonConfig​(String config)