public class CacheResource extends Object
Constructor and Description |
---|
CacheResource(com.atlassian.cache.CacheManager cacheManager,
CacheStatisticsManager cacheStatisticsManager,
CacheConfigManager cacheConfigManager) |
Modifier and Type | Method and Description |
---|---|
void |
flushAllCaches() |
void |
flushCache(String cacheName) |
int |
getCacheMaxEntries(String cacheName)
Returns the configured maximum number of elements in the given cache
|
Collection<Hashtable> |
getCacheStatistics()
Returns all cache statistics.
|
Hashtable |
getCacheStatistics(String cacheName)
Returns the cache statistics for a particular named cache.
|
Collection<String> |
getCacheStatisticsCapabilities() |
void |
putStringMappingInCache(String cacheName,
String key,
String value)
Map a key to a value for a given cache.
|
void |
setCacheMaxEntries(String cacheName,
int maxNumElements)
(Re)configures the maximum number of elements in the given cache
|
public CacheResource(com.atlassian.cache.CacheManager cacheManager, CacheStatisticsManager cacheStatisticsManager, CacheConfigManager cacheConfigManager)
public void flushAllCaches()
public void flushCache(String cacheName)
public int getCacheMaxEntries(String cacheName)
cacheName
- the key of the cache, rather than the "niceName"public void setCacheMaxEntries(String cacheName, int maxNumElements)
cacheName
- the key of the cache, rather than the "niceName"maxNumElements
- the new size for the cachepublic void putStringMappingInCache(String cacheName, String key, String value)
public Collection<Hashtable> getCacheStatistics()
public Hashtable getCacheStatistics(String cacheName)
cacheName
- the key of the cache, rather than the "niceName"public Collection<String> getCacheStatisticsCapabilities()
Copyright © 2003–2015 Atlassian. All rights reserved.