接口 KeyGenerator

  • 所有已知实现类:
    DefaultKeyGenerator, SimpleKeyGenerator

    public interface KeyGenerator
    Cache key generator. Used for creating a key based on the given method (used as context) and its parameters.
    从以下版本开始:
    3.1
    作者:
    Costin Leau, Chris Beams, Phillip Webb
    • 方法详细资料

      • generate

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