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 Detail

      • generate

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