All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.cache.runtime.CacheManagerInitializer Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
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