Interface CacheAdapter


  • @ConsumerType
    public interface CacheAdapter
    Provides cache support for pipelines.
    • Method Detail

      • get

        rx.Observable<String> get​(String cacheKey,
                                  CachePersistencyOptions options)
        Retrieve an item from cache.
        Parameters:
        cacheKey - Cache key
        options - 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 key
        jsonString - JSON data
        options - valid cache persistence options