public interface ICacheManager extends IComponentProvider
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CACHE_ID |
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
default void |
configureCache(String name,
Map<String,Object> properties) |
ICache |
createCache(String factory,
String name,
int maxSize,
boolean isClustered,
String phase,
Map<String,Object> properties)
Creates a cache using the specified factory class name.
|
void |
flushAllCaches(ICacheKey key)
calls ICache.flush with given key on all known caches
Note that one key implementation won't flush caches
that contain a different key implementation
|
ICache |
getCache(int cacheID)
get cache by ID
Only valid for DB-based caches, otherwise returns null
|
ICache |
getCache(String name)
Gets a cached cache.
|
IMetaContext |
getMetaContext()
get the standard meta context
|
void |
removeCache(String name)
removes an item from the cache.
|
void |
stopThread() |
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
static final int MAX_CACHE_ID
ICache getCache(String name)
name
- ICache getCache(int cacheID)
cacheID
- ICache createCache(String factory, String name, int maxSize, boolean isClustered, String phase, Map<String,Object> properties) throws PortalException, InitializationException
factory
- factory class namename
- name of cachemaxSize
- maximum size of in-memory component of cacheisClustered
- do you want to gen/rec cluster-wide cache events?CacheException
- if failure to instantiatePortalException
InitializationException
void removeCache(String name) throws PortalException
name
- cache namePortalException
void flushAllCaches(ICacheKey key)
void stopThread()
IMetaContext getMetaContext()
default void configureCache(String name, Map<String,Object> properties) throws PortalException
PortalException