data_cache_x 0.1.4 copy "data_cache_x: ^0.1.4" to clipboard
data_cache_x: ^0.1.4 copied to clipboard

A Flutter package for efficient offline data caching and synchronization.

0.1.0 #

  • Initial release with basic functionality
  • Added simple get operation to retrieve data
  • Added save operation to store data
  • Added delete operation to remove data

0.1.2 #

  • Implemented data expiry feature
  • Added support for setting TTL (Time To Live) on cached data
  • Added automatic cleanup of expired data
  • Added example todo app demonstrating all features

0.1.3 #

  • Migrated storage backend to Hive database for better performance
  • Added update operation for modifying existing data
  • Improved data persistence and reliability
  • Enhanced error handling for database operations

0.1.3+1 #

  • Included Readme.md

0.1.4 #

  • Introduced configurable options for Hive box name and background cleanup frequency.
  • Improved type safety by using generics for CacheItem and a type registry for HiveAdapter.
  • Made setupDataCacheX asynchronous to handle potential initialization delays.
  • Enhanced error handling in background cleanup with logging.
  • Added support for multiple cache adapters, including an in-memory option.
  • Implemented sliding expiration, cache invalidation by key or custom condition, and data encryption.
  • Exposed metrics for cache usage, including hit count, miss count, and hit rate.
  • Implemented custom object serialization using DataSerializer and JsonDataSerializer.
  • Introduced custom exceptions for better error handling in TypeAdapterRegistry.
  • Enhanced setupDataCacheX and BackgroundCleanup to be more configurable, allowing custom adapters and serializers.
  • Improved encryption in MemoryAdapter by using AES encryption with a configurable key.
  • The encryption key for both MemoryAdapter and HiveAdapter is now configurable.
  • Added support for more storage adapters, including SQLite and shared preferences.
  • Implemented a more robust background cleanup mechanism that processes cache items in batches.
1
likes
0
points
71
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for efficient offline data caching and synchronization.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

encrypt, flutter, get_it, hive, hive_flutter, logging, path, shared_preferences, sqflite, workmanager

More

Packages that depend on data_cache_x