public interface BoxCache
| Modifier and Type | Method and Description |
|---|---|
<T extends BoxObject,R extends BoxRequest & BoxCacheableRequest> |
get(R request)
Returns the last cached BoxObject for this BoxRequest.
|
<T extends BoxObject> |
put(BoxResponse<T> response)
Stores the BoxResponse object in the local store.
|
<T extends BoxObject,R extends BoxRequest & BoxCacheableRequest> T get(R request) throws BoxException
T - A child of BoxObjectR - A child of BoxRequest that implements BoxCacheableRequestrequest - - The BoxRequest object that can be used for fetching remote data.BoxException - thrown if the request fails.<T extends BoxObject> void put(BoxResponse<T> response) throws BoxException
T - A child of BoxObjectresponse - - BoxResponse object obtained from a BoxRequest sent using the Box Android SDK.BoxException - - Exception that should be thrown if there is an issue with storing response.