Package io.micronaut.cache.interceptor
Class KotlinSuspendFunCacheKeyGenerator
- java.lang.Object
-
- io.micronaut.cache.interceptor.DefaultCacheKeyGenerator
-
- io.micronaut.cache.interceptor.KotlinSuspendFunCacheKeyGenerator
-
- All Implemented Interfaces:
CacheKeyGenerator
@Introspected public class KotlinSuspendFunCacheKeyGenerator extends DefaultCacheKeyGenerator
An implementation of the
CacheKeyGenerator
which works exactly likeDefaultCacheKeyGenerator
but drops the last parameter.- Since:
- 3.2.3
-
-
Constructor Summary
Constructors Constructor Description KotlinSuspendFunCacheKeyGenerator()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.Object generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, java.lang.Object... params)
Description copied from interface:CacheKeyGenerator
Generate a key for the given annotated element and parameters.- Specified by:
generateKey
in interfaceCacheKeyGenerator
- Overrides:
generateKey
in classDefaultCacheKeyGenerator
- Parameters:
annotationMetadata
- The annotated metadataparams
- The parameters- Returns:
- The generated key. Never null.
-
-