|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerCacheManager
The cache service for server side caching of beans and query results.
Method Summary | |
---|---|
void |
clear(Class<?> beanType)
This clears both the bean and query cache for a given type. |
void |
clearAll()
Clear all the caches. |
ServerCache |
getBeanCache(Class<?> beanType)
Return the cache for beans of a particular type. |
ServerCache |
getQueryCache(Class<?> beanType)
Return the cache for query results of a particular type of bean. |
void |
init(EbeanServer server)
This method is called just after the construction of the ServerCacheManager. |
boolean |
isBeanCaching(Class<?> beanType)
Return true if there is an active bean cache for this type of bean. |
Method Detail |
---|
void init(EbeanServer server)
The EbeanServer is provided so that cache implementations can make use of EbeanServer and BackgroundExecutor for automatically populating and background trimming of the cache.
boolean isBeanCaching(Class<?> beanType)
ServerCache getBeanCache(Class<?> beanType)
ServerCache getQueryCache(Class<?> beanType)
void clear(Class<?> beanType)
void clearAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |