Package io.quarkus.cache
Interface CacheKeyGenerator
- All Known Implementing Classes:
UndefinedCacheKeyGenerator
public interface CacheKeyGenerator
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.
-
Method Summary
-
Method Details
-
generate
Generates a cache key.- Parameters:
method
- the cached methodmethodParams
- the method parameters- Returns:
- cache key
-