Package com.helixframework.okhttp.delta
Class CacheServiceDeltaRequestBodyStore
java.lang.Object
com.helixframework.okhttp.delta.CacheServiceDeltaRequestBodyStore
- All Implemented Interfaces:
DeltaRequestBodyStore
DeltaRequestBodyStore backed by a Helix CacheService.-
Constructor Summary
ConstructorsConstructorDescriptionCacheServiceDeltaRequestBodyStore(com.helixframework.cache.CacheService<String, String> cacheService) Creates a new store backed by the supplied cache service. -
Method Summary
-
Constructor Details
-
Method Details
-
get
Description copied from interface:DeltaRequestBodyStoreLoads the previously cached request body.- Specified by:
getin interfaceDeltaRequestBodyStore- Parameters:
key- cache key- Returns:
- cached body when present
-
put
Description copied from interface:DeltaRequestBodyStoreStores the latest request body for the cache key.- Specified by:
putin interfaceDeltaRequestBodyStore- Parameters:
key- cache keybody- request body to persist
-