Package org.mybatis.caches.memcached
Class MemcachedCache
java.lang.Object
org.mybatis.caches.memcached.MemcachedCache
- All Implemented Interfaces:
org.apache.ibatis.cache.Cache
The Memcached-based Cache implementation.
- Author:
- Simone Tripodi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getId()
int
getSize()
void
removeObject
(Object key)
-
Constructor Details
-
MemcachedCache
Builds a new Memcached-based Cache.- Parameters:
id
- the Mapper id.
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfaceorg.apache.ibatis.cache.Cache
-
getId
- Specified by:
getId
in interfaceorg.apache.ibatis.cache.Cache
-
getObject
- Specified by:
getObject
in interfaceorg.apache.ibatis.cache.Cache
-
getReadWriteLock
- Specified by:
getReadWriteLock
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
-
removeObject
- Specified by:
removeObject
in interfaceorg.apache.ibatis.cache.Cache
-