public interface KeepRequestCache extends KeepBaseCache
Interface for result caching in KEEP Cache population happens at the very end of a pipe and return at the beginning in the handlerCacheForGetMethod
Modifier and Type | Method and Description |
---|---|
boolean |
addEnty(java.lang.String hash,
io.vertx.core.buffer.Buffer toBeCached,
int timeToLive)
Add an entry to the cache.
|
java.util.stream.Stream<io.vertx.core.buffer.Buffer> |
getEntry(java.lang.String hash)
Retrieves an entry based on the hash
|
boolean |
hasEntry(java.lang.String hash)
Is a specific request in the cache?
|
clear, evict, getCachePrefix
boolean addEnty(java.lang.String hash, io.vertx.core.buffer.Buffer toBeCached, int timeToLive)
Add an entry to the cache. There can be multiple entries loaded in the same key to reflect multiple payloads being sent over the EventBus
hash
- toBeCached
- timeToLive
- java.util.stream.Stream<io.vertx.core.buffer.Buffer> getEntry(java.lang.String hash)
Retrieves an entry based on the hash
hash
- boolean hasEntry(java.lang.String hash)
Is a specific request in the cache?
hasEntry
in interface KeepBaseCache
hash
-