Package com.artipie.composer.http.proxy
Class ComposerStorageCache
java.lang.Object
com.artipie.composer.http.proxy.ComposerStorageCache
- All Implemented Interfaces:
Cache
Cache implementation that tries to obtain items from storage cache,
validates it and returns if valid. If item is not present in storage or is not valid,
it is loaded from remote.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage
<Optional<? extends Content>> load
(Key name, Remote remote, CacheControl control)
-
Constructor Details
-
ComposerStorageCache
Ctor.- Parameters:
repository
- Repository
-
-
Method Details
-
load
public CompletionStage<Optional<? extends Content>> load(Key name, Remote remote, CacheControl control)
-