king_cache 0.0.55
king_cache: ^0.0.55 copied to clipboard
Flutter package for caching api data and markdown content 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
storeCacheViaResttocacheViaRest - 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
justApiparameter tocacheViaRestfunction 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 setjustApitotrueand it will return the api response without caching it.
0.0.5 #
-
Removed share logs as file as this is not a default functionality and adding package increases the package size. If you want to share logs, you can use the
getLogFilefunction to get the log file and share it however . -
Added
cacheKeyparameter tocacheViaRestfunction to set the cache key. for example, if you want to cache the api response with a specific key, you can setcacheKeytoyour_keyand it will cache the api response with the keyyour_key. -
Added
getCacheViaKeyfunction to get the cache with a specific key. for example, if you want to get the cache with a specific key, you can setcacheKeytoyour_keyand it will return the cache with the keyyour_key. -
Added
setCacheViaKeyfunction to set the cache with a specific key. for example, if you want to set the cache with a specific key, you can setcacheKeytoyour_keyand it will set the cache with the keyyour_key. -
Added
getCacheKeysfunction to get all the cache keys. -
Added
removeCacheViaKeyfunction to remove the cache with a specific key. for example, if you want to remove the cache with a specific key, you can setcacheKeytoyour_keyand it will remove the cache with the keyyour_key.
0.0.6 #
- Debug Prints added
- Added
baseUrlsetter to set the base url so you don't ned to pass the base url every time you call thecacheViaRestfunction.
0.0.7 #
- Added
setHeadersto set the headers so you don't need to pass the headers every time you call thecacheViaRestfunction. - Test Updated
0.0.8 #
- Added
appendFormDatato append the form data so you don't need to pass the form data every time you call thecacheViaRestfunction. - Test Updated with more cleanup
0.0.9 #
- Cache File type added to the cache file name so you can easily identify the cache file type.
- Test Updated with more cleanup
0.0.10 #
- Date Format in logs updated to
yyyy-MM-dd HH:mm:ss - On Success will not called twice if the cache and api data is same
0.0.11 #
- Added response bodyBytes to the response model so you can get the response body bytes.
0.0.12 #
- Fix Logging and Update Form data
0.0.13 #
- Added Patch Method
0.0.14 #
- Tests Updated
0.0.15 #
- Base URL support is also added for network request method
0.0.16 #
- Read ME Updated
0.0.17 #
- Just API Deprecated in respect of network request method
0.0.18 #
- Just API is removed from the cacheViaRest method
- Added Log File name text test
- Added New files for particular methods
0.0.19 #
- Added Response Headers in Response Model
0.0.20 #
- Added In App Update Support
- Added Local Auth Support
- Added Package Info Support
- Added Url Launcher for Download app if available from Github Release
- Added Request Permission Method
- Above all are helper methods that can be used instantly in any app
0.0.21 #
- Removed Support for Url Launcher
- Removed Toast Method as Passing Context is not for this package
0.0.22 #
- Update Check for Update Method
0.0.23 #
- Version Tag added in update check method
0.0.24 #
- App Version Tab Widget Added
0.0.25 #
- Added abstract for testing
- Added Couple of Global Extensions
0.0.26 #
- Added ToIdentifier method to convert enum to String
- Removed Currency for now as it have some issues
- Added Web check for log method, Web Support is under development
0.0.27 #
- Play Store Check Updated
0.0.28 #
- Function Updates
0.0.29 #
- Added Extension Methods
0.0.30 #
- Added Web Cache Manager
- Added IndexedDB for Web
0.0.31 #
- Downgraded web to 0.5.0
0.0.32 #
- Removed idm_shim
0.0.33 #
- Added flutter_local_notifications
0.0.34 #
- Added device_info_plus
- Added Device info in logs
0.0.35 #
- Updated Device info to a separate method instead of in get all logs method
0.0.36 #
- Added
getAndroidVersionmethod to get the android version
0.0.37 #
- Updated Dependencies
0.0.38 #
- Added Logger and Respective method
- Updated Dependencies
0.0.39 #
- Added prefixBaseUrl flag to add base url conditionally
- Logger Method Updated to have default values only
0.0.40 #
- Added ktCreateGithubIssue method to create github issue from the app
0.0.41 #
- Dependencies Updated
0.0.42 #
- Dependencies Updated
0.0.43 #
- Removed Local Auth as it's not maintained any more
- Dependencies Updated
0.0.44 #
- Added Local Auth as Technical debt
0.0.45 #
- Dependencies Updated
0.0.46 #
- Fixed Device Info Plus Dependency issue
0.0.47 #
- Dependencies Updated
0.0.48 #
- Updated Date Time Extensions
- Added More Tests
- Dependencies Updated
0.0.49 #
- Dependencies Updated
0.0.50 #
- Dependencies Updated
0.0.51 #
- Added ClearOldLogs Methods
0.0.52 #
- Packages Updated
0.0.53 #
- Added Web Support for cache & logs
0.0.54 #
- Fixed the issues with web
- Renamed Couple of Functions
- Updated Example app to have all those
- if you find any issues, please create an issue on github and we will fix it as soon as possible
0.0.55 #
- Fixed Couple of issues
- Updated Dependencies