@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface CacheRemove
CacheResult context.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
commandKey
Command name is used to find appropriate Hystrix command that cache should be cleared.
|
| 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 commandKey
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".