Top Description Methods
org.springframework.cache.interceptor

public Interface KeyGenerator

Known Direct Implementers
org.springframework.cache.interceptor.SimpleKeyGenerator
Annotations
@FunctionalInterface
Imports
java.lang.reflect.Method

Cache key generator. Used for creating a key based on the given method (used as context) and its parameters.
Authors
Costin Leau, Chris Beams, Phillip Webb
Since
3.1

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a generated key
generate
(Object
the target instance
target
,
Method
the method being called
method
,
Object...
the method parameters (with any var-args expanded)
params
)

Generate a key for the given method and its parameters.

Method Detail

generateback to summary
public Object generate(Object target, Method method, Object... params)

Generate a key for the given method and its parameters.

Parameters
target:Object

the target instance

method:Method

the method being called

params:Object[]

the method parameters (with any var-args expanded)

Returns:Object

a generated key