com.microduo.commons.cache.ehcache
类 EhCacheImpl
java.lang.Object
com.microduo.commons.cache.ehcache.EhCacheImpl
- 所有已实现的接口:
- ICache<net.sf.ehcache.Cache>
public class EhCacheImpl
- extends java.lang.Object
- implements ICache<net.sf.ehcache.Cache>
|
构造方法摘要 |
EhCacheImpl(net.sf.ehcache.Cache cache)
|
EhCacheImpl(java.lang.String name,
int maxElementsInMemory,
boolean overflowToDisk,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds)
|
| 从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheImpl
public EhCacheImpl(net.sf.ehcache.Cache cache)
EhCacheImpl
public EhCacheImpl(java.lang.String name,
int maxElementsInMemory,
boolean overflowToDisk,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds)
getName
public java.lang.String getName()
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 getName
put
public void put(java.lang.Object key,
java.lang.Object value)
- 从接口
ICache 复制的描述
- 向缓存内设置键、值
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 put
- 参数:
key - 键value - 值
get
public java.lang.Object get(java.lang.Object key)
- 从接口
ICache 复制的描述
- 根据键获取值
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 get
- 参数:
key - 键
- 返回:
- 值
remove
public boolean remove(java.lang.Object key)
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 remove
removeAll
public void removeAll()
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 removeAll
getSize
public int getSize()
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 getSize
getMemoryStoreSize
public long getMemoryStoreSize()
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 getMemoryStoreSize
getMetaCache
public net.sf.ehcache.Cache getMetaCache()
- 指定者:
- 接口
ICache<net.sf.ehcache.Cache> 中的 getMetaCache