io.quarkus.cache.runtime.CacheManagerInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-cache Show documentation
Show all versions of quarkus-cache Show documentation
Enable application data caching in CDI beans
package io.quarkus.cache.runtime;
import jakarta.enterprise.event.Observes;
import io.quarkus.cache.CacheManager;
import io.quarkus.runtime.StartupEvent;
/**
* This class is used to eagerly create the {@link CacheManager} bean instance at RUNTIME_INIT execution time.
*/
public class CacheManagerInitializer {
private static void onStartup(@Observes StartupEvent event, CacheManager cacheManager) {
cacheManager.getCacheNames();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy