Constructor and Description |
---|
StorageCache(Storage storage)
New storage cache.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<? extends Content> |
load(Key key,
AsyncContent remote,
CacheControl control)
Try to load content from cache or fallback to remote publisher if cached key doesn't exist.
|
public StorageCache(Storage storage)
storage
- Back-end storage for cachepublic CompletionStage<? extends Content> load(Key key, AsyncContent remote, CacheControl control)
Cache
Copyright © 2019–2020 jcabi.com. All rights reserved.