public class VCacheCacheManager extends AbstractCacheManager
CacheManager contract.cacheCreationLocks, caches, cacheSettingsDefaultsProvider| Constructor and Description |
|---|
VCacheCacheManager(com.atlassian.vcache.VCacheFactory vCacheFactory,
CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected <K,V> ManagedCache |
createComputingCache(String name,
CacheSettings settings,
CacheLoader<K,V> loader)
Creates a cache that upon a miss is able to populate itself using the loader.
|
protected ManagedCache |
createSimpleCache(String name,
CacheSettings settings)
Creates a cache with no loader, i.e.
|
<V> CachedReference<V> |
getCachedReference(String name,
Supplier<V> supplier,
CacheSettings settings)
Returns a Cached Reference, creating it if necessary.
|
flushCaches, getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCaches, getManagedCache, getManagedCaches, mergeSettings, shutdownpublic VCacheCacheManager(com.atlassian.vcache.VCacheFactory vCacheFactory,
CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
protected <K,V> ManagedCache createComputingCache(String name, CacheSettings settings, @Nullable CacheLoader<K,V> loader)
AbstractCacheManagercreateComputingCache in class AbstractCacheManagerprotected ManagedCache createSimpleCache(@Nonnull String name, @Nonnull CacheSettings settings)
AbstractCacheManagercreateSimpleCache in class AbstractCacheManagername - the name to give the cache (required)@Nonnull public <V> CachedReference<V> getCachedReference(@Nonnull String name, @Nonnull Supplier<V> supplier, @Nonnull CacheSettings settings)
CacheFactoryname - the name of the Cached Referencesupplier - the supplier for value to be cached, called if the value needs to be generatedsettings - specifies the required cache settingsCopyright © 2018 Atlassian. All rights reserved.