
Hystrix: Latency and Fault Tolerance for Distributed Systems
com.netflix.hystrix
Class HystrixRequestCache
java.lang.Object
com.netflix.hystrix.HystrixRequestCache
public class HystrixRequestCache
- extends java.lang.Object
Cache that is scoped to the current request as managed by HystrixRequestVariableDefault.
This is used for short-lived caching of HystrixCommand instances to allow de-duping of command executions within a request.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static HystrixRequestCache getInstance(HystrixCommandKey key,
HystrixConcurrencyStrategy concurrencyStrategy)
getInstance
public static HystrixRequestCache getInstance(HystrixCollapserKey key,
HystrixConcurrencyStrategy concurrencyStrategy)
clear
public void clear(java.lang.String cacheKey)
- Clear the cache for a given cacheKey.
- Parameters:
cacheKey - key as defined by HystrixCommand.getCacheKey()