Interface CacheKeyGenerator

All Known Implementing Classes:
UndefinedCacheKeyGenerator

public interface CacheKeyGenerator
Implement this interface to generate a cache key based on the cached method, its parameters or any data available from within the generator. The implementation is injected as a CDI bean if possible or is instantiated using the default constructor otherwise.
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(Method method, Object... methodParams)
    Generates a cache key.
  • Method Details

    • generate

      Object generate(Method method, Object... methodParams)
      Generates a cache key.
      Parameters:
      method - the cached method
      methodParams - the method parameters
      Returns:
      cache key