flutter_cache_manager 3.0.0-nullsafety.1 copy "flutter_cache_manager: ^3.0.0-nullsafety.1" to clipboard
flutter_cache_manager: ^3.0.0-nullsafety.1 copied to clipboard

outdated

Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.

[3.0.0-nullsafety.1] - 2021-03-02 #

  • Bug fix for NonStoringObjectProvider.

[3.0.0-nullsafety.0] - 2021-02-25 #

  • Migration to nullsafety.
  • Bug fix for JsonCacheInfoRepository when file is corrupted.

[2.1.1] - 2021-01-14 #

  • Update minimal dependency sqflite
  • Small fix for non-existing directory (PR #264)

[2.1.0] - 2020-12-21 #

  • Added ImageCacheManager with support for image resizing.
  • Upgrade dependencies.

[2.0.0] - 2020-10-16 #

  • Restructured the configuration of the CacheManager. Look at the ReadMe for more information.
  • Added queueing mechanism for downloading new files. By default, the cache manager downloads a maximum of 10 files at the same time.
  • Moved SQFlite database file from sqflite database path to application support directory.
  • Add putFileStream to add an external file to the cache.
  • Add option to use a key to get files from the cache which can be different from the url.
  • Added JsonCacheInfoRepository for Windows and Linux.
  • BREAKING CHANGE Creating a CacheManager now requires a Config object, see the readme for complete example.
  • BREAKING CHANGE Renamed maxAgeCacheObject to stalePeriod
  • BREAKING CHANGE Custom CacheInfoRepository need to include a key and some extra methods.
  • BREAKING CHANGE A CacheInfoRepository is now assumed to allow multiple connections, which means you can call 'open' multiple times and the repo keeps track on the number of connections.

[2.0.0-beta.1] - 2020-10-10 #

  • Reintroduced BaseCacheManager interface for backwards compatibility.
  • Renamed putExistFile to putFileStream. This is equally efficient, but more clear in what it does.

[2.0.0-beta] - 2020-10-01 #

  • Added option for a key different from the url.
  • Added a new CacheInfoRepository: JsonCacheInfoRepository, which is not used by default on the existing platforms, but can be used on any.
  • Added support for Windows and Linux using the JsonCacheInfoRepository by default.
  • Added support for adding an existing file.
  • BREAKING CHANGE Creating a CacheManager now requires a Config object, see the readme for complete example.
  • BREAKING CHANGE Renamed maxAgeCacheObject to stalePeriod
  • BREAKING CHANGE Custom CacheInfoRepository need to include a key and some extra methods.
  • BREAKING CHANGE A CacheInfoRepository is now assumed to allow multiple connections, which means you can call 'open' multiple times and the repo keeps track on the number of connections.

[1.4.2] - 2020-09-10 #

  • Compatibility with Flutter version 1.22.

[1.4.1] - 2020-06-14 #

  • Bugfix: CacheManager returned a file that didn't exist when the file was removed by the OS (or any other external system) while the app was active. This also prevented the CacheManager to redownload the file (PR #190).

[1.4.0] - 2020-06-04 #

  • Allow cleaning of memory cache (PR #183).
  • Bugfix: Cleaning doesn't want to delete a file twice anymore (PR #185).

[1.3.0] - 2020-05-28 #

  • Basic web support. (At least it downloads the file for you.)
  • Support for the following mimetypes:
    • application/vnd.android.package-archive (apk)
    • audio/x-aac (aac)
    • video/quicktime (mov)

[1.2.2] - 2020-04-16 #

  • Support for RxDart 0.24.x

[1.2.1] - 2020-04-14 #

  • Fixed optional parameters in the Content-Type header (#164).

[1.2.0] - 2020-04-10 #

  • Added getFileStream to CacheManager
    • getFileStream has an optional parameter 'withProgress' to receive progress.
    • getFileStream returns a FileResponse which is either a FileInfo or a DownloadProgress.
  • Changes to FileFetcher and FileFetcherResponse:
    • FileFetcher is now replaced with a FileService which is a class instead of a function.
    • FileServiceResponse doesn't just give magic headers, but concrete implementation of the needed information.
    • FileServiceResponse gives a contentStream instead of content for more efficient handling of the data.
    • FileServiceResponse contains contentLength with information about the total size of the content.
  • Changes in CacheStore for testability:
    • CleanupRunMinInterval can now be set.
    • Expects a mockable directory instead of a path.
  • Added CacheInfoRepository interface to possibly replace the current CacheObjectProvider based on sqflite.
  • Changes in WebHelper
    • Files are now always saved with a new name. Files are first saved to storage before old file is removed.
  • General code quality improvements

[1.1.3] - 2019-10-17 #

  • Use try-catch in WebHelper so VM understands that errors are not uncaught.

[1.1.2] - 2019-10-16 #

  • Better error handling (really better this time).
  • Fix that oldest files are removed, and not the newest.
  • Fix error when cache data exists, but file is already removed.
  • await on putFile

[1.1.1] - 2019-07-23 #

  • Changed error handling back to throwing the error as it is supposed to be.

[1.1.0] - 2019-07-13 #

  • New method to get fileinfo from memory.
  • Better error handling.

[1.0.0] - 2019-06-27 #

  • Keep SQL connection open during session.
  • Update dependencies

[0.3.2] - 2019-03-06 #

  • Fixed image loading after loading failed once.

[0.3.1] - 2019-02-27 #

  • Added method to clear cache

[0.3.0] - 2019-02-18 #

  • Complete refactor of library
  • Use of SQFlite instead of shared preferences for cache info
  • Added the option to use a custom file fetcher (for example for firebase)
  • Support for AndroidX

[0.2.0] - 2018-10-13 #

  • Fixed library compatibility issue

[0.1.2] - 2018-08-30 #

  • Fixed library compatibility issue
  • Improved some synchronization

[0.1.1] - 2018-04-27 #

  • Fixed some issues when file could not be downloaded the first time it is trying to be retrieved.

[0.1.0] - 2018-04-14 #

  • Fixed ConcurrentModificationError in cache cleaning
  • Added optional headers
  • Moved to Dart 2.0

[0.0.4+1] - 2018-02-16 #

  • Fixed nullpointer when non-updated file (a 304 response) has no cache-control period.

[0.0.4] - 2018-01-31 #

  • Fixed issues with cache cleaning

[0.0.3] - 2018-01-08 #

  • Fixed relative paths on iOS.

[0.0.2] - 2017-12-29 #

  • Did some refactoring and made a useful readme.

[0.0.1] - 2017-12-28 #

  • Extracted the cache manager from cached_network_image
1698
likes
0
pub points
100%
popularity

Publisher

verified publisherbaseflow.com

Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

clock, collection, file, flutter, http, image, path, path_provider, pedantic, rxdart, sqflite, uuid

More

Packages that depend on flutter_cache_manager