io.quarkus.cache.CacheKeyGenerator 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;
import java.lang.reflect.Method;
/**
* Implement this interface to generate a cache key based on the cached method, its parameters or any data available from within
* the generator. The implementation is injected as a CDI bean if possible or is instantiated using the default constructor
* otherwise.
*/
public interface CacheKeyGenerator {
/**
* Generates a cache key.
*
* @param method the cached method
* @param methodParams the method parameters
* @return cache key
*/
Object generate(Method method, Object... methodParams);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy