Atlassian cache - cacheManager.getCache returns null

I am using atlassian cache.

Below is the implementation.

private static CacheSettings CACHE_SETTING = (new CacheSettingsBuilder().unflushable().replicateViaCopy().build());

Cache<String, String> cache = cacheManager.getCache(“My Cache”, null, CACHE_SETTING);

But some times cacheManager.getCache returns null due to internal error.

If I restart jira instance, it works perfectly fine, Can some one help me on this ?

1 Like