Package com.atlassian.jira.cache
Class ZduCacheMigrationHelper
java.lang.Object
com.atlassian.jira.cache.ZduCacheMigrationHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.atlassian.cache.CachedReference<T>migrate(com.atlassian.cache.CacheFactory cacheManager, String oldCacheName, ZduCacheMigrationHelper.JiraVersion version, com.atlassian.cache.CachedReference<T> newCache) This method should be used when you split/rename a cache and need to maintain cache consistency in a mixed-version ZDU environment.
-
Constructor Details
-
ZduCacheMigrationHelper
public ZduCacheMigrationHelper()
-
-
Method Details
-
migrate
public static <T> com.atlassian.cache.CachedReference<T> migrate(com.atlassian.cache.CacheFactory cacheManager, String oldCacheName, ZduCacheMigrationHelper.JiraVersion version, com.atlassian.cache.CachedReference<T> newCache) This method should be used when you split/rename a cache and need to maintain cache consistency in a mixed-version ZDU environment. It will propagate cache invalidation calls from a cache in old version to the new split caches.- Parameters:
cacheManager- cache manager beanversion- the last version of Jira that requires this cache handleroldCacheName- the old cachenewCache- the new cache
-