data_cache_x 0.1.4
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
Hivebox name andbackgroundcleanup frequency. - Improved type safety by using generics for
CacheItemand a type registry forHiveAdapter. - Made
setupDataCacheXasynchronous 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
DataSerializerandJsonDataSerializer. - Introduced custom exceptions for better error handling in
TypeAdapterRegistry. - Enhanced
setupDataCacheXandBackgroundCleanupto be more configurable, allowing custom adapters and serializers. - Improved encryption in
MemoryAdapterby using AES encryption with a configurable key. - The encryption key for both
MemoryAdapterandHiveAdapteris now configurable. - Added support for more storage adapters, including
SQLiteandshared preferences. - Implemented a more robust background cleanup mechanism that processes cache items in batches.