Class InMemoryCacheAdapter

  • All Implemented Interfaces:
    io.wcm.caravan.pipeline.cache.spi.CacheAdapter

    @ProviderType
    public final class InMemoryCacheAdapter
    extends Object
    implements io.wcm.caravan.pipeline.cache.spi.CacheAdapter
    An in-memory implementation of the CacheAdapter for tests.
    • Constructor Detail

      • InMemoryCacheAdapter

        public InMemoryCacheAdapter()
    • Method Detail

      • get

        public rx.Observable<String> get​(String cacheKey,
                                         io.wcm.caravan.pipeline.cache.CachePersistencyOptions options)
        Specified by:
        get in interface io.wcm.caravan.pipeline.cache.spi.CacheAdapter
      • put

        public void put​(String cacheKey,
                        String jsonString,
                        io.wcm.caravan.pipeline.cache.CachePersistencyOptions options)
        Specified by:
        put in interface io.wcm.caravan.pipeline.cache.spi.CacheAdapter