public interface SwitchingCacheFactory
Modifier and Type | Field and Description |
---|---|
static String |
JIRA_VERTIGO_GLOBAL_VCACHE_ENABLE |
Modifier and Type | Method and Description |
---|---|
<K,V> CacheAdapter<K,V> |
buildSwitchingRequestCache(String cacheName,
Optional<com.atlassian.cache.CacheSettings> cacheSettings,
String darkFeatureKey)
Creates a wrapper over either
Cache or RequestCache depending
on whether the dark feature key for either this cache or the big bang key is enabled. |
<V> SingleValueLocalCache<V> |
buildSwitchingRequestCache(String cacheName,
java.util.function.Supplier<V> supplier,
String darkFeatureKey)
Creates a single value cache wrapper over either
Cache or RequestCache depending
on whether the dark feature key for either this cache or the big bang key is enabled. |
static final String JIRA_VERTIGO_GLOBAL_VCACHE_ENABLE
<K,V> CacheAdapter<K,V> buildSwitchingRequestCache(String cacheName, Optional<com.atlassian.cache.CacheSettings> cacheSettings, String darkFeatureKey)
Cache
or RequestCache
depending
on whether the dark feature key for either this cache or the big bang key is enabled.K
- The key type.V
- The value type.cacheName
- The name of the cache (must have no whitespace).cacheSettings
- Optional cache settings, valid for atlassian cache caches ONLY.darkFeatureKey
- The dark feature key associated with making only this cache a request cache.Cache
or
RequestCache
depending on whether the dark feature
key for either this cache or the big bang key is enabled.<V> SingleValueLocalCache<V> buildSwitchingRequestCache(String cacheName, java.util.function.Supplier<V> supplier, String darkFeatureKey)
Cache
or RequestCache
depending
on whether the dark feature key for either this cache or the big bang key is enabled.V
- The value type.cacheName
- The name of the cache (must have no whitespace).darkFeatureKey
- The dark feature key associated with making only this cache a request cache.Cache
or
RequestCache
depending on whether the dark feature
key for either this cache or the big bang key is enabled.Copyright © 2002-2017 Atlassian. All Rights Reserved.