Class Overview
Class that allows Confluence's ehcache configuration to be modified programmatically.
Changes will be made to both the runtime configuration as well as the persisted configuration (allowing
changes to persist across restarts).
Summary
Public Methods |
void
|
changeMaxCacheSize(String cacheName, int newMaxCacheSize)
Changes the maximum cache size of the specified cache (both in runtime and where its persisted).
|
Public Constructors
public
EhCacheConfigManager
(EhCacheConfig ehCacheConfig, CacheManager cacheManager)
Public Methods
public
void
changeMaxCacheSize
(String cacheName, int newMaxCacheSize)
Changes the maximum cache size of the specified cache (both in runtime and where its persisted).
If no config is explicitly declared, a new cache configuration is created based off of the default configuration.
Parameters
cacheName
| name of cache |
newMaxCacheSize
| new max cache size
|