public class HystrixRequestCache extends 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(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(String cacheKey)
cacheKey - key as defined by AbstractCommand.getCacheKey()Copyright © 2015. All Rights Reserved.