public interface ResourceCacheStrategy
ResourceDataRequest
and ResourceDataResult
.Modifier and Type | Method and Description |
---|---|
void |
cache(ResourceDataRequest request,
ResourceDataResult result)
Cache the
result data that was returned based on the request . |
ResourceDataResult |
readFromCache(ResourceDataRequest request)
Attempts to retrieve data from the cache based on the
request . |
void cache(ResourceDataRequest request, ResourceDataResult result)
result
data that was returned based on the request
.request
- the data requestresult
- the result to be cachedResourceDataResult readFromCache(ResourceDataRequest request)
request
. If the object is NOT found in the cache,
null
is returned.request
- the source request used to query the cache.Copyright © 2017–2023 Okta. All rights reserved.