king_cache 0.0.4 copy "king_cache: ^0.0.4" to clipboard
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 to cacheViaRest
  • 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 to cacheViaRest 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 set justApi to true and it will return the api response without caching it.
12
likes
0
pub points
77%
popularity

Publisher

verified publisherkingtechnologies.dev

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.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, path_provider, share_plus

More

Packages that depend on king_cache