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 like DefaultCacheKeyGenerator but drops the last parameter.

Since:
3.2.3
Author:
Jacek Gajek
  • Constructor Details

    • KotlinSuspendFunCacheKeyGenerator

      public KotlinSuspendFunCacheKeyGenerator()
  • Method Details

    • generateKey

      public Object generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Object... params)
      Description copied from interface: CacheKeyGenerator
      Generate a key for the given annotated element and parameters.
      Specified by:
      generateKey in interface CacheKeyGenerator
      Overrides:
      generateKey in class DefaultCacheKeyGenerator
      Parameters:
      annotationMetadata - The annotated metadata
      params - The parameters
      Returns:
      The generated key. Never null.