Interface CacheAdapter
-
@ConsumerType public interface CacheAdapter
Provides cache support for pipelines.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description rx.Observable<String>
get(String cacheKey, CachePersistencyOptions options)
Retrieve an item from cache.void
put(String cacheKey, String jsonString, CachePersistencyOptions options)
Store an item in the cache.
-
-
-
Method Detail
-
get
rx.Observable<String> get(String cacheKey, CachePersistencyOptions options)
Retrieve an item from cache.- Parameters:
cacheKey
- Cache keyoptions
- valid cache persistence options- Returns:
- an observable that will either emit the cached JSON string, or complete without emitting on a cache miss
-
put
void put(String cacheKey, String jsonString, CachePersistencyOptions options)
Store an item in the cache.- Parameters:
cacheKey
- Cache keyjsonString
- JSON dataoptions
- valid cache persistence options
-
-