Package io.micronaut.cache.interceptor
Class KotlinSuspendFunCacheKeyGenerator
java.lang.Object
io.micronaut.cache.interceptor.DefaultCacheKeyGenerator
io.micronaut.cache.interceptor.KotlinSuspendFunCacheKeyGenerator
- All Implemented Interfaces:
CacheKeyGenerator
@Deprecated(forRemoval=true,
since="5.3.0")
@Introspected
public class KotlinSuspendFunCacheKeyGenerator
extends DefaultCacheKeyGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
An implementation of the CacheKeyGenerator
which works exactly like DefaultCacheKeyGenerator
but drops the last parameter.
- Since:
- 3.2.3
- Author:
- Jacek Gajek
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongenerateKey
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.Generate a key for the given annotated element and parameters.
-
Constructor Details
-
KotlinSuspendFunCacheKeyGenerator
public KotlinSuspendFunCacheKeyGenerator()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
generateKey
public Object generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Object... params) Deprecated, for removal: This API element is subject to removal in a future version.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.
-
CacheInterceptor