Interface CacheResult
-
- All Implemented Interfaces:
public interface CacheResultRepresents an item that is retrieved from cache using
CacheService
-
-
Method Summary
Modifier and Type Method Description abstract InputStreamgetData()Gets the content of the item that is retrieved from the cache. abstract CacheExpirygetExpiry()Gets the expiry of the item that is retrieved from the cache. abstract Map<String, String>getMetadata()Gets the metadata of the item that is retrieved from the cache. -
-
Method Detail
-
getData
@Nullable() abstract InputStream getData()
Gets the content of the item that is retrieved from the cache.
- Returns:
the content of the item that was cached
-
getExpiry
@NonNull() abstract CacheExpiry getExpiry()
Gets the expiry of the item that is retrieved from the cache.
- Returns:
expiry of the item that was cached
-
getMetadata
@Nullable() abstract Map<String, String> getMetadata()
Gets the metadata of the item that is retrieved from the cache. Note that this metadata may also contain additional keys used internally by
CacheServiceto facilitate caching.- Returns:
metadata of the item provided when it was cached.
-
-
-
-