public class GenericCacheObject<V extends java.io.Serializable> extends AbstractCacheObject<V>
cacheConfiguration, cacheObjectDataLoader, logger, tenantId
statistics
isCacheDisabled
构造器和说明 |
---|
GenericCacheObject(java.lang.String group,
java.lang.String name,
CacheConfiguration cacheConfiguration,
ObjectDataLoader dataLoader,
java.lang.Boolean isRestartReload) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
allowRedisFlush()
检查是否按需或者可以补偿回来
|
void |
clear()
清除所有缓存项。
|
V |
get()
取得缓存的值。
|
boolean |
needConsistent()
是否需要保持一级缓存一致性
|
int |
set(V o)
设置缓存的值。
|
int |
size()
该方法提供的为本地大小,不代表Redis缓存大小,谨慎使用
Returns the number of elements in this list.
|
getCacheObjectDataLoader, isEmpty, setObjectDataLoader
checkBatchCacheMiss, checkBatchInProtectCache, checkCacheMiss, checkInProtectCache, clearProtectCache, getCacheKey, getFullName, getGroup, getName, getStatistics, invalidateProtectCache, invalidateProtectCache, setBatchProtectCache, setProtectCache, setProtectDataExpire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullName, getGroup, getName, getStatistics
public GenericCacheObject(java.lang.String group, java.lang.String name, CacheConfiguration cacheConfiguration, ObjectDataLoader dataLoader, java.lang.Boolean isRestartReload)
public int set(V o)
CacheObject
o
- 缓存值public V get()
CacheObject
public int size()
GroupCacheable
public void clear()
GroupCacheable
public boolean allowRedisFlush()
GroupCacheable
public boolean needConsistent()
GroupCacheable