@Internal public interface CacheManager extends CacheFactory
| Modifier and Type | Method and Description |
|---|---|
void |
flushCaches()
Flush the contents of all flushable caches registered with the cache manager.
|
Collection<Cache<?,?>> |
getCaches()
Deprecated.
Since 2.0. Use
getManagedCaches() instead. |
ManagedCache |
getManagedCache(String name)
Returns the managed cache for the specified name.
|
Collection<ManagedCache> |
getManagedCaches()
Gets the collection of caches managed.
|
void |
shutdown()
Shuts down and clean all data of the current instance and its all caches.
|
getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCachedReference@Deprecated @Nonnull Collection<Cache<?,?>> getCaches()
getManagedCaches() instead.Caches. The returned collection will only include caches created via
the getCache(...) methods. Caches created via the getCachedReference(...)
methods are not included.@Nonnull Collection<ManagedCache> getManagedCaches()
getCache(...) and
getCachedReference(...) methods.ManagedCaches.void flushCaches()
CacheSettings.getFlushable()@Nullable ManagedCache getManagedCache(@Nonnull String name)
name - the name of the managed cache to retrieveManagedCache specified by name
or null if no cache exists.void shutdown()
Copyright © 2018 Atlassian. All rights reserved.