public class JbootEhredisCacheImpl extends JbootCacheBase implements net.sf.ehcache.event.CacheEventListener
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
channel |
private String |
clientId |
static String |
DEFAULT_NOTIFY_CHANNEL |
private JbootEhcacheImpl |
ehcacheImpl |
private com.github.benmanes.caffeine.cache.LoadingCache<String,List> |
keysCache |
private JbootRedis |
redis |
private JbootRedisCacheImpl |
redisCacheImpl |
private JbootSerializer |
serializer |
config| 构造器和说明 |
|---|
JbootEhredisCacheImpl(JbootCacheConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
clearKeysCache(String cacheName) |
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,
int liveSeconds) |
JbootEhcacheImpl |
getEhcacheImpl() |
List |
getKeys(String cacheName) |
List |
getNames() |
JbootRedisCacheImpl |
getRedisCacheImpl() |
Integer |
getTtl(String cacheName,
Object key) |
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache) |
void |
onMessage(String channel,
Object obj) |
private void |
publishMessage(int action,
String cacheName,
Object key) |
void |
put(String cacheName,
Object key,
Object value) |
void |
put(String cacheName,
Object key,
Object value,
int liveSeconds) |
void |
refresh(String cacheName) |
void |
refresh(String cacheName,
Object key) |
void |
remove(String cacheName,
Object key) |
void |
removeAll(String cacheName) |
void |
setTtl(String cacheName,
Object key,
int seconds) |
addThreadCacheNamePrefixIngore, buildCacheName, clearThreadCacheNamePrefix, getConfig, println, removeThreadCacheNamePrefixIngore, setThreadCacheNamePrefixequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddThreadCacheNamePrefixIngorespublic static final String DEFAULT_NOTIFY_CHANNEL
private JbootEhcacheImpl ehcacheImpl
private JbootRedisCacheImpl redisCacheImpl
private JbootRedis redis
private JbootSerializer serializer
public JbootEhredisCacheImpl(JbootCacheConfig config)
public <T> T get(String cacheName, Object key)
get 在接口中 com.jfinal.plugin.activerecord.cache.ICacheget 在接口中 JbootCachepublic void put(String cacheName, Object key, Object value)
put 在接口中 com.jfinal.plugin.activerecord.cache.ICacheput 在接口中 JbootCachepublic void put(String cacheName, Object key, Object value, int liveSeconds)
put 在接口中 JbootCachepublic void remove(String cacheName, Object key)
remove 在接口中 com.jfinal.plugin.activerecord.cache.ICacheremove 在接口中 JbootCachepublic void removeAll(String cacheName)
removeAll 在接口中 com.jfinal.plugin.activerecord.cache.ICacheremoveAll 在接口中 JbootCachepublic <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader)
get 在接口中 JbootCachepublic <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader, int liveSeconds)
get 在接口中 JbootCachepublic void setTtl(String cacheName, Object key, int seconds)
setTtl 在接口中 JbootCacheprivate void publishMessage(int action, String cacheName, Object key)
private void clearKeysCache(String cacheName)
public void refresh(String cacheName, Object key)
refresh 在接口中 JbootCacherefresh 在类中 JbootCacheBasepublic void refresh(String cacheName)
refresh 在接口中 JbootCacherefresh 在类中 JbootCacheBasepublic List getNames()
getNames 在接口中 JbootCachepublic List getKeys(String cacheName)
getKeys 在接口中 JbootCachepublic JbootEhcacheImpl getEhcacheImpl()
public JbootRedisCacheImpl getRedisCacheImpl()
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 Object clone() throws CloneNotSupportedException
clone 在接口中 net.sf.ehcache.event.CacheEventListenerclone 在类中 ObjectCloneNotSupportedExceptionpublic void dispose()
dispose 在接口中 net.sf.ehcache.event.CacheEventListenerCopyright © 2024. All rights reserved.