接口 KeyGenerator

所有已知实现类:
SimpleKeyGenerator
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

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

    修饰符和类型
    方法
    说明
    generate(Object target, Method method, Object... params)
    Generate a key for the given method and its parameters.
  • 方法详细资料

    • 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