Fetch data from url and add into cache. If already exists in cache, should return instantly.
The url to the data to be cached. *
Optionalstoretype: stringOnly applies to ArtifactIndexedDBCache. Since indexedDB stores the actual
*
Optionalsignal: AbortSignalAn optional AbortSignal to abort data retrival.
data rather than a request, we specify storagetype. There are two options:
fetch(url).json()fetch(url).arrayBuffer()Delete the corresponding url object in cache
the corresponding url object to be deleted
fetch the corresponding url object in response or stored object format
url
Optionalstoretype: stringthe storage type for indexedDB
Optionalsignal: AbortSignalan optional abort signal to abort fetching
response in json, arraybuffer or pure response format
Determine if all keys exist in the cache
the url key list of the strings
boolean value indicate if all keys are in cache
Convert the Response object to the expected storetype instead
Optionalstoretype: string
Cache to store model related data, implemented with the Cache API.