@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface CacheResult
HystrixCommand
annotation.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
cacheKeyMethod
Method name to be used to get a key for request caching.
|
public abstract java.lang.String cacheKeyMethod
String
.
cacheKeyMethod has higher priority than an arguments of a method, that means what actual arguments
of a method that annotated with CacheResult
will not be used to generate cache key, instead specified
cacheKeyMethod fully assigns to itself responsibility for cache key generation.
By default this returns empty string which means "do not use cache method".