public class HystrixRequestCache
extends java.lang.Object
HystrixRequestVariableDefault
.
This is used for short-lived caching of HystrixCommand
instances to allow de-duping of command executions within a request.
Modifier and Type | Method and Description |
---|---|
void |
clear(java.lang.String cacheKey)
Clear the cache for a given cacheKey.
|
static HystrixRequestCache |
getInstance(HystrixCollapserKey key,
HystrixConcurrencyStrategy concurrencyStrategy) |
static HystrixRequestCache |
getInstance(HystrixCommandKey key,
HystrixConcurrencyStrategy concurrencyStrategy) |
public static HystrixRequestCache getInstance(HystrixCommandKey key, HystrixConcurrencyStrategy concurrencyStrategy)
public static HystrixRequestCache getInstance(HystrixCollapserKey key, HystrixConcurrencyStrategy concurrencyStrategy)
public void clear(java.lang.String cacheKey)
cacheKey
- key as defined by AbstractCommand.getCacheKey()