public class DefaultCacheHolder extends Object
| Constructor and Description |
|---|
DefaultCacheHolder(ServerCacheFactory cacheFactory,
ServerCacheOptions defaultOptions,
boolean useBeanTuning)
Create with a cache factory and default cache options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll() |
void |
clearCache(String cacheKey) |
ServerCache |
getCache(String cacheKey)
Return the cache for a given bean type.
|
ServerCacheOptions |
getDefaultOptions()
Return the default cache options.
|
boolean |
isCaching(String beanType)
Return true if there is an active cache for this bean type.
|
public DefaultCacheHolder(ServerCacheFactory cacheFactory, ServerCacheOptions defaultOptions, boolean useBeanTuning)
cacheFactory - the factory for creating the cachedefaultOptions - the default options for tuning the cacheuseBeanTuning - if true then use the bean class specific tuning. This is
generally false for the query cache.public ServerCacheOptions getDefaultOptions()
public ServerCache getCache(String cacheKey)
public void clearCache(String cacheKey)
public boolean isCaching(String beanType)
public void clearAll()
Copyright © 2014. All Rights Reserved.