Package io.quarkus.cache.runtime
Class CacheManagerImpl
- java.lang.Object
-
- io.quarkus.cache.runtime.CacheManagerImpl
-
- All Implemented Interfaces:
CacheManager
public class CacheManagerImpl extends Object implements CacheManager
This class is registered as an @ApplicationScoped synthetic bean at build time.
-
-
Constructor Summary
Constructors Constructor Description CacheManagerImpl(Map<String,Cache> caches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Cache>
getCache(String name)
Gets the cache identified by the given name.Set<String>
getCacheNames()
Gets a collection of all cache names.
-
-
-
Method Detail
-
getCacheNames
public Set<String> getCacheNames()
Description copied from interface:CacheManager
Gets a collection of all cache names.- Specified by:
getCacheNames
in interfaceCacheManager
- Returns:
- names of all caches
-
getCache
public Optional<Cache> getCache(String name)
Description copied from interface:CacheManager
Gets the cache identified by the given name.- Specified by:
getCache
in interfaceCacheManager
- Parameters:
name
- cache name- Returns:
- an
Optional
containing the identified cache if it exists, or an emptyOptional
otherwise
-
-