public abstract class DefaultStrongRedisCache<K,V> extends Object implements IRefreshableCache<K,V>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| 构造器和说明 |
|---|
DefaultStrongRedisCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Map<K,V> |
get() |
V |
get(K key) |
void |
invalid()
重新初始化缓存数据
|
void |
invalid(K key) |
void |
invalidMulti(K... keys) |
boolean |
refresh()
刷新策略
|
boolean |
refresh(K... keys) |
void |
setCacheProvider(IBatchCacheProvider<K,V> cacheProvider) |
void |
setCacheStorage(RedisCacheStorage<K,V> cacheStorage) |
void |
setInterval(int seconds) |
public void setInterval(int seconds)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void setCacheProvider(IBatchCacheProvider<K,V> cacheProvider)
public void setCacheStorage(RedisCacheStorage<K,V> cacheStorage)
public void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic boolean refresh()
刷新策略
refresh 在接口中 IRefreshableCache<K,V>public boolean refresh(K... keys)
refresh 在接口中 IRefreshableCache<K,V>public void invalidMulti(K... keys)
invalidMulti 在接口中 ICache<K,V>Copyright © 2018 Pivotal Software, Inc.. All rights reserved.