Class ZduCacheMigrationHelper

java.lang.Object
com.atlassian.jira.cache.ZduCacheMigrationHelper

public final class ZduCacheMigrationHelper extends Object
  • 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 bean
      oldCacheName - the old cache
      version - the last version of Jira that requires this cache handler
      newCache - the new cache