Methods
(inner) addDataIntoCache - Adds data into the cache(cacheName, url, response)
It takes a cache name, a URL, and a response, and then it adds the response to
the cache
Parameters:
Name | Type | Description |
---|---|---|
cacheName |
The name of the cache to store the data in. | |
url |
The URL of the data to be cached. | |
response |
The response object that you want to cache. |
- Source:
(inner) getDataFromCache - Gets data from the cache(cacheName)
It takes a cache name as a parameter, gets the data from local storage, parses
it, and returns the data
Parameters:
Name | Type | Description |
---|---|---|
cacheName |
The name of the cache you want to get data from. |
- Source:
Returns:
the data from the cache.