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, wait
getCachePrefix
public boolean addEnty(java.lang.String hash, io.vertx.core.buffer.Buffer toBeCached, int timeToLive)
KeepRequestCache
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
addEnty
in interface KeepRequestCache
hash
- toBeCached
- timeToLive
- public void clear()
KeepBaseCache
Clears the cache of all current members
clear
in interface KeepBaseCache
public boolean evict(java.lang.String hash)
KeepBaseCache
Removes an entry from cache removing a non-existing key is still a success
evict
in interface KeepBaseCache
hash
- public java.util.stream.Stream<io.vertx.core.buffer.Buffer> getEntry(java.lang.String hash)
KeepRequestCache
Retrieves an entry based on the hash
getEntry
in interface KeepRequestCache
hash
- public boolean hasEntry(java.lang.String hash)
KeepRequestCache
Is a specific request in the cache?
hasEntry
in interface KeepBaseCache
hasEntry
in interface KeepRequestCache
hash
-