public class BrokenCache extends java.lang.Object implements KeepRequestCache
TODO: Delete this class
| Constructor and Description |
|---|
BrokenCache() |
| 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.
|
void |
clear()
Clears the cache of all current members
|
boolean |
evict(java.lang.String hash)
Removes an entry from cache removing a non-existing key is still a success
|
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?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachePrefixpublic boolean addEnty(java.lang.String hash,
io.vertx.core.buffer.Buffer toBeCached,
int timeToLive)
KeepRequestCacheAdd an entry to the cache. There can be multiple entries loaded in the same key to reflect multiple payloads being sent over the EventBus
addEnty in interface KeepRequestCachehash - toBeCached - timeToLive - public void clear()
KeepBaseCacheClears the cache of all current members
clear in interface KeepBaseCachepublic boolean evict(java.lang.String hash)
KeepBaseCacheRemoves an entry from cache removing a non-existing key is still a success
evict in interface KeepBaseCachehash - public java.util.stream.Stream<io.vertx.core.buffer.Buffer> getEntry(java.lang.String hash)
KeepRequestCacheRetrieves an entry based on the hash
getEntry in interface KeepRequestCachehash - public boolean hasEntry(java.lang.String hash)
KeepRequestCacheIs a specific request in the cache?
hasEntry in interface KeepBaseCachehasEntry in interface KeepRequestCachehash -