public class

EhCacheConfigManager

extends Object
implements CacheConfigManager
java.lang.Object
   ↳ com.atlassian.confluence.cache.ehcache.EhCacheConfigManager

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 Constructors
EhCacheConfigManager(EhCacheConfig ehCacheConfig, CacheManager cacheManager)
Public Methods
void changeMaxCacheSize(String cacheName, int newMaxCacheSize)
Changes the maximum cache size of the specified cache (both in runtime and where its persisted).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.cache.CacheConfigManager

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