public interface ServerCacheManager
| Modifier and Type | Method and Description |
|---|---|
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 |
getCollectionIdsCache(Class<?> beanType,
String propertyName) |
ServerCache |
getNaturalKeyCache(Class<?> beanType)
Return the cache for mapping natural keys to id values.
|
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.
|
void |
setCaching(Class<?> beanType,
boolean useCache) |
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.
void setCaching(Class<?> beanType, boolean useCache)
boolean isBeanCaching(Class<?> beanType)
ServerCache getNaturalKeyCache(Class<?> beanType)
ServerCache getBeanCache(Class<?> beanType)
ServerCache getCollectionIdsCache(Class<?> beanType, String propertyName)
ServerCache getQueryCache(Class<?> beanType)
void clearAll()
Copyright © 2016. All rights reserved.