Package com.turbospaces.ebean
Class SimpleCache
java.lang.Object
com.turbospaces.ebean.SimpleCache
- All Implemented Interfaces:
LocalCache,io.ebean.cache.ServerCache,Supplier<com.google.common.cache.Cache<Object,Object>>
public class SimpleCache
extends Object
implements LocalCache, Supplier<com.google.common.cache.Cache<Object,Object>>
-
Constructor Details
-
SimpleCache
-
-
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
-