C
- The native cache implementation@Singleton @Primary public class DefaultCacheManager<C> extends Object implements CacheManager<C>
CacheManager
interface.Constructor and Description |
---|
DefaultCacheManager(List<SyncCache<C>> caches)
Deprecated.
Use
DefaultCacheManager(List, Provider) instead. |
DefaultCacheManager(List<SyncCache<C>> caches,
Provider<DynamicCacheManager<C>> dynamicCacheManager)
Create default cache manager for the given caches.
|
DefaultCacheManager(SyncCache<C>... caches)
Create default cache manager for the given caches.
|
Modifier and Type | Method and Description |
---|---|
SyncCache<C> |
getCache(String name)
Retrieve a cache for the given name.
|
Set<String> |
getCacheNames() |
@Deprecated public DefaultCacheManager(List<SyncCache<C>> caches)
DefaultCacheManager(List, Provider)
instead.caches
- List of synchronous cache implementations@Inject public DefaultCacheManager(List<SyncCache<C>> caches, @Nullable Provider<DynamicCacheManager<C>> dynamicCacheManager)
caches
- List of synchronous cache implementationsdynamicCacheManager
- The dynamic cache manager@Nonnull public Set<String> getCacheNames()
getCacheNames
in interface CacheManager<C>
@Nonnull public SyncCache<C> getCache(String name)
CacheManager
getCache
in interface CacheManager<C>
name
- The name of the cacheSyncCache
instance