Package com.atlassian.cache
Interface CacheManager
- All Superinterfaces:
CacheFactory
-
Method Summary
Modifier and TypeMethodDescriptionvoidFlush the contents of all flushable caches registered with the cache manager.Collection<Cache<?, ?>> Deprecated.Since 2.0.getManagedCache(String name) Returns the managed cache for the specified name.Gets the collection of caches managed.voidshutdown()Shuts down and clean all data of the current instance and its all caches.Methods inherited from interface com.atlassian.cache.CacheFactory
getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCachedReference, getReadThroughCache, getReadThroughCache
-
Method Details
-
getCaches
Deprecated.Since 2.0. UsegetManagedCaches()instead.Gets the collection of caches managed. This collection is not a "live" collection. It is a copy.- Returns:
- a collection of
Caches. The returned collection will only include caches created via thegetCache(...)methods. Caches created via thegetCachedReference(...)methods are not included.
-
getManagedCaches
Gets the collection of caches managed. This collection is not a "live" collection. It is a copy. The returned collection will include caches created via both thegetCache(...)andgetCachedReference(...)methods.- Returns:
- a collection of
ManagedCaches.
-
flushCaches
void flushCaches()Flush the contents of all flushable caches registered with the cache manager.- See Also:
-
getManagedCache
Returns the managed cache for the specified name.- Parameters:
name- the name of the managed cache to retrieve- Returns:
- the
ManagedCachespecified bynameornullif no cache exists. - Since:
- 2.3.0
-
shutdown
void shutdown()Shuts down and clean all data of the current instance and its all caches.- Since:
- 2.4.0
-