Interface KeyGenerator

  • All Known Implementing Classes:
    DefaultKeyGenerator, SimpleKeyGenerator

    public interface KeyGenerator
    Cache key generator. Used for creating a key based on the given method (used as context) and its parameters.
    Since:
    3.1
    Author:
    Costin Leau, Chris Beams, Phillip Webb
    • Method Detail

      • generate

        Object generate​(Object target,
                        Method method,
                        Object... params)
        Generate a key for the given method and its parameters.
        Parameters:
        target - the target instance
        method - the method being called
        params - the method parameters (with any var-args expanded)
        Returns:
        a generated key