java.lang.Object
io.ebean.redis.DuelCache
- All Implemented Interfaces:
ServerCache,NearCacheInvalidate
-
Constructor Summary
ConstructorsConstructorDescriptionDuelCache(io.ebeaninternal.server.cache.DefaultServerCache near, io.ebean.redis.RedisCache remote, String cacheKey, NearCacheNotify cacheNotify) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()longReturn the near cache hit count.longReturn the near cache miss count.longReturn the redis cache hit count.longReturn the redis cache miss count.voidClear the near cache.voidinvalidateKey(Object id) Invalidate from near cache the given key.voidinvalidateKeys(Set<Object> keySet) Invalidate from near cache the given keys.voidvoidvoidvoidvoidvisit(MetricVisitor visitor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.cache.ServerCache
hitRatio, size, statistics, unwrap
-
Constructor Details
-
DuelCache
public DuelCache(io.ebeaninternal.server.cache.DefaultServerCache near, io.ebean.redis.RedisCache remote, String cacheKey, NearCacheNotify cacheNotify)
-
-
Method Details
-
visit
- Specified by:
visitin interfaceServerCache
-
invalidateKeys
Description copied from interface:NearCacheInvalidateInvalidate from near cache the given keys.- Specified by:
invalidateKeysin interfaceNearCacheInvalidate
-
invalidateKey
Description copied from interface:NearCacheInvalidateInvalidate from near cache the given key.- Specified by:
invalidateKeyin interfaceNearCacheInvalidate
-
invalidateClear
public void invalidateClear()Description copied from interface:NearCacheInvalidateClear the near cache.- Specified by:
invalidateClearin interfaceNearCacheInvalidate
-
getAll
- Specified by:
getAllin interfaceServerCache
-
get
- Specified by:
getin interfaceServerCache
-
putAll
- Specified by:
putAllin interfaceServerCache
-
put
- Specified by:
putin interfaceServerCache
-
removeAll
- Specified by:
removeAllin interfaceServerCache
-
remove
- Specified by:
removein interfaceServerCache
-
clear
public void clear()- Specified by:
clearin interfaceServerCache
-
getNearHitCount
public long getNearHitCount()Return the near cache hit count. -
getNearMissCount
public long getNearMissCount()Return the near cache miss count. -
getRemoteHitCount
public long getRemoteHitCount()Return the redis cache hit count. -
getRemoteMissCount
public long getRemoteMissCount()Return the redis cache miss count.
-