C
- The native cache implementation@Singleton @Primary public class DefaultCacheManager<C> extends java.lang.Object implements CacheManager<C>
CacheManager
interface.Constructor and Description |
---|
DefaultCacheManager(java.util.List<SyncCache<C>> caches,
javax.inject.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(java.lang.String name)
Retrieve a cache for the given name.
|
java.util.Set<java.lang.String> |
getCacheNames() |
@Inject public DefaultCacheManager(java.util.List<SyncCache<C>> caches, @Nullable javax.inject.Provider<DynamicCacheManager<C>> dynamicCacheManager)
caches
- List of synchronous cache implementationsdynamicCacheManager
- The dynamic cache manager@NonNull public java.util.Set<java.lang.String> getCacheNames()
getCacheNames
in interface CacheManager<C>
@NonNull public SyncCache<C> getCache(java.lang.String name)
CacheManager
getCache
in interface CacheManager<C>
name
- The name of the cacheSyncCache
instance