Interface CacheKeyGenerator

All Known Implementing Classes:
DefaultCacheKeyGenerator, KotlinSuspendFunCacheKeyGenerator

public interface CacheKeyGenerator

An interface for generating keys used by Cacheable.

Since:
1.0
Author:
Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Object... params)
    Generate a key for the given annotated element and parameters.
  • Method Details

    • generateKey

      Object generateKey(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Object... params)
      Generate a key for the given annotated element and parameters.
      Parameters:
      annotationMetadata - The annotated metadata
      params - The parameters
      Returns:
      The generated key. Never null.