public interface HttpCacheStore
| Modifier and Type | Method and Description |
|---|---|
HttpCacheRecord |
cacheRecord(String cacheKey)
Returns ResponseCacheRecord for the entry named cacheKey or null if it doesn't exist or is not currently readable.
|
HttpCacheRecordEditor |
cacheRecordEditor(String cacheKey)
Returns an editor for the entry named cacheKey or null if another edit is in progress.
|
void |
delete()
Closes the cache and deletes all of its stored values.
|
void |
remove(String cacheKey)
Drops the entry for key if it exists and can be removed.
|
@Nullable HttpCacheRecord cacheRecord(@Nonnull String cacheKey) throws IOException
cacheKey - the name of the entryIOException@Nullable HttpCacheRecordEditor cacheRecordEditor(@Nonnull String cacheKey) throws IOException
cacheKey - the entry to edit.HttpCacheRecordEditor to use for editing the entryIOExceptionvoid remove(@Nonnull String cacheKey) throws IOException
IOExceptionvoid delete()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.