Store response in cache if response is ok (2xx status codes)
Parameters
req: RequestInfo | URL
RequestInfo | URL to store
res: Response
Response to store
cacheName: string = 'default'
name of the cache to store (default: 'default')
Returns Promise<void>
Example
constreq = newRequest('http://localhost:3000/api/v1/health'); constres = awaitfetch(req); awaitcacheStore(req, res); // store response if response is ok (2xx status codes)
Store response in cache if response is ok (2xx status codes)