Package org.mybatis.caches.redis
Class RedisCache
java.lang.Object
org.mybatis.caches.redis.RedisCache
- All Implemented Interfaces:
org.apache.ibatis.cache.Cache
Cache adapter for Redis.
- Author:
- Eduardo Macarron
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getId()
int
getSize()
void
removeObject
(Object key) void
setTimeout
(Integer timeout) toString()
-
Constructor Details
-
RedisCache
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.apache.ibatis.cache.Cache
-
getSize
public int getSize()- Specified by:
getSize
in interfaceorg.apache.ibatis.cache.Cache
-
putObject
- Specified by:
putObject
in interfaceorg.apache.ibatis.cache.Cache
-
getObject
- Specified by:
getObject
in interfaceorg.apache.ibatis.cache.Cache
-
removeObject
- Specified by:
removeObject
in interfaceorg.apache.ibatis.cache.Cache
-
clear
public void clear()- Specified by:
clear
in interfaceorg.apache.ibatis.cache.Cache
-
getReadWriteLock
- Specified by:
getReadWriteLock
in interfaceorg.apache.ibatis.cache.Cache
-
toString
-
setTimeout
-