| 构造器和说明 |
|---|
EhredisImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
clone() |
void |
dispose() |
<T> T |
get(String cacheName,
Object key) |
<T> T |
get(String cacheName,
Object key,
com.jfinal.plugin.ehcache.IDataLoader dataLoader) |
<T> T |
get(String cacheName,
Object key,
com.jfinal.plugin.ehcache.IDataLoader dataLoader,
Integer liveSeconds) |
Set<String> |
getKeys(String cacheName) |
Integer |
getTtl(String cacheName,
Object key) |
boolean |
has(String cacheName,
Object key) |
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
接收来自ehcache的消息:回收项目
|
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
接收来自ehcache的消息:超期项目
|
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
接收来自ehcache的消息:添加项目
|
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
接收来自ehcache的消息:删除项目
|
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
接收来自ehcache的消息:更新项目
|
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache)
接收来自ehcache的消息:删除全部
|
void |
onMessage(String channel,
Object obj)
接收来自redis的消息
|
void |
put(String cacheName,
Object key,
Object value) |
void |
put(String cacheName,
Object key,
Object value,
Integer liveSeconds) |
void |
remove(String cacheName,
Object key) |
void |
removeAll(String cacheName) |
void |
setTtl(String cacheName,
Object key,
Integer seconds) |
public <T> T get(String cacheName, Object key)
get 在接口中 com.jfinal.plugin.activerecord.cache.ICachepublic void put(String cacheName, Object key, Object value)
put 在接口中 com.jfinal.plugin.activerecord.cache.ICachepublic void remove(String cacheName, Object key)
remove 在接口中 com.jfinal.plugin.activerecord.cache.ICachepublic void removeAll(String cacheName)
removeAll 在接口中 com.jfinal.plugin.activerecord.cache.ICachepublic <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader)
public <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader, Integer liveSeconds)
public void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementRemoved 在接口中 net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementPut 在接口中 net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementUpdated 在接口中 net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementExpired 在接口中 net.sf.ehcache.event.CacheEventListenerpublic void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementEvicted 在接口中 net.sf.ehcache.event.CacheEventListenerpublic void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll 在接口中 net.sf.ehcache.event.CacheEventListenerpublic void dispose()
dispose 在接口中 net.sf.ehcache.event.CacheEventListenerpublic Object clone() throws CloneNotSupportedException
clone 在接口中 net.sf.ehcache.event.CacheEventListenerclone 在类中 ObjectCloneNotSupportedExceptionCopyright © 2020. All rights reserved.