Package com.turbospaces.ebean
Class LocalEbeanCache
java.lang.Object
com.turbospaces.ebean.LocalEbeanCache
- All Implemented Interfaces:
LocalCache,io.ebean.cache.ServerCache,Supplier<com.google.common.cache.Cache<Object,Object>>
public class LocalEbeanCache
extends Object
implements LocalCache, Supplier<com.google.common.cache.Cache<Object,Object>>
-
Constructor Summary
ConstructorsConstructorDescriptionLocalEbeanCache(String cacheKey, int maxSize, io.ebean.config.CurrentTenantProvider tenantProvider) LocalEbeanCache(String cacheKey, io.ebeaninternal.server.cache.DefaultServerCacheConfig cfg, io.ebean.config.CurrentTenantProvider tenantProvider) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.ebean.cache.ServerCache
getAll, putAll, removeAll, unwrap, visit
-
Constructor Details
-
Method Details
-
get
- Specified by:
getin interfaceio.ebean.cache.ServerCache
-
put
- Specified by:
putin interfaceio.ebean.cache.ServerCache
-
remove
- Specified by:
removein interfaceio.ebean.cache.ServerCache
-
size
public int size()- Specified by:
sizein interfaceio.ebean.cache.ServerCache
-
hitRatio
public int hitRatio()- Specified by:
hitRatioin interfaceio.ebean.cache.ServerCache
-
statistics
public io.ebean.cache.ServerCacheStatistics statistics(boolean reset) - Specified by:
statisticsin interfaceio.ebean.cache.ServerCache
-
clear
public void clear()- Specified by:
clearin interfaceio.ebean.cache.ServerCache
-
onClear
public int onClear()- Specified by:
onClearin interfaceLocalCache
-
get
-
toString
-
key
-