public interface IOssIndexCache
| Modifier and Type | Method and Description |
|---|---|
void |
cache(String requestString,
String json)
Cache the specified query
|
void |
close()
Ensure that the cache persists if required
|
void |
commit()
Commit any recent changes into the cache
|
String |
get(String requestString)
Get cached results, if they are available
|
String |
get(String requestString,
long delay)
Return the cached value if the elapsed time is not passed.
|
void cache(String requestString, String json)
requestString - Request that is being cachedjson - Response to requestString get(String requestString)
requestString - Request that was cachedString get(String requestString, long delay)
requestString - Request that is being cacheddelay - Elapsed time before we ignore the cached valuevoid commit()
void close()
Copyright © 2015. All rights reserved.