Class Cache
java.lang.Object
org.apache.beam.io.requestresponse.Cache
Transforms for reading and writing request/response associations to a cache.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA simple POJO that holds both cache read and writePTransforms.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <RequestT,ResponseT> 
 Cache.Pair<RequestT, ResponseT> usingRedis(URI uri, Coder<RequestT> requestTCoder, Coder<ResponseT> responseTCoder, Duration expiry) 
- 
Constructor Details- 
Cachepublic Cache()
 
- 
- 
Method Details- 
usingRedispublic static <RequestT,ResponseT> Cache.Pair<RequestT,ResponseT> usingRedis(URI uri, Coder<RequestT> requestTCoder, Coder<ResponseT> responseTCoder, Duration expiry) throws Coder.NonDeterministicException Builds aCache.Pairusing a Redis cache to read and writeCacheandCachepairs. The purpose of the cache is to offloadCaches from the API and instead return theCacheif the association is known. Since theCaches andCaches need encoding and decoding, checks are made whether the requestTCoder and responseTCoders areCoder.verifyDeterministic(). This feature is only appropriate for API reads such as HTTP list, get, etc.Below describes the parameters in more detail and their usage. - Throws:
- Coder.NonDeterministicException
 
 
-