| Constructor and Description |
|---|
DfeMemCache()
A cache that strips
ResponseWrapperS to their Payload. |
DfeMemCache(boolean strip) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(java.lang.String uri)
Remove an entry from the cache
|
void |
clear(java.net.URI uri)
Remove an entry from the cache
|
void |
clearAll()
Clear the entire cache
|
de.onyxbits.raccoon.proto.ResponseWrapper |
get(java.net.URI uri)
Get an item from the cache
|
void |
put(java.net.URI uri,
de.onyxbits.raccoon.proto.ResponseWrapper content,
long ttl)
Put an item into the cache
|
public DfeMemCache()
ResponseWrapperS to their Payload.public DfeMemCache(boolean strip)
strip - true to strip ResponseWrapper to their Payload,
false to cache them as is.public void put(java.net.URI uri,
de.onyxbits.raccoon.proto.ResponseWrapper content,
long ttl)
DfeCachepublic de.onyxbits.raccoon.proto.ResponseWrapper get(java.net.URI uri)
DfeCachepublic void clear(java.net.URI uri)
uri - keypublic void clear(java.lang.String uri)
uri - keypublic void clearAll()