Package io.micronaut.cache.interceptor
Interface CacheKeyGenerator
-
- All Known Implementing Classes:
DefaultCacheKeyGenerator
,KotlinSuspendFunCacheKeyGenerator
public interface CacheKeyGenerator
An interface for generating keys used by
Cacheable
.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, java.lang.Object... params)
Generate a key for the given annotated element and parameters.
-
-
-
Method Detail
-
generateKey
java.lang.Object generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, java.lang.Object... params)
Generate a key for the given annotated element and parameters.- Parameters:
annotationMetadata
- The annotated metadataparams
- The parameters- Returns:
- The generated key. Never null.
-
-