king_cache 0.0.4 king_cache: ^0.0.4 copied to clipboard
A Flutter package for caching api data to disk and improving app performance. It uses the http package to make api calls and use cache directory to cache data.
0.0.1 #
- Initial release
- Created this package to cache apis results so next time when you call the same api, it will return the cached result instead of calling the api again. This will help to reduce the number of api calls and improve the user experience of your app.
- This package uses file based caching system.
- It give you couple of functions to manage the cache.
- I also added a log function so you can add, remove, clear and share logs.
- It also give you ability to set the cache expiry time.
0.0.2 #
- Examples updated
0.0.3 #
- Rename the function
storeCacheViaRest
tocacheViaRest
- New cache callbacks added to get the cache hit and miss.
- New API response callback added to get the api response and error.
0.0.4 #
- Added
justApi
parameter tocacheViaRest
function to get the api response without caching it. for example, if you just want to get the api response and don't want to cache it, you can setjustApi
totrue
and it will return the api response without caching it.