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
Hive
box name andbackground
cleanup frequency. - Improved type safety by using generics for
CacheItem
and a type registry forHiveAdapter
. - 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
andJsonDataSerializer
. - Introduced custom exceptions for better error handling in
TypeAdapterRegistry
. - Enhanced
setupDataCacheX
andBackgroundCleanup
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
andHiveAdapter
is now configurable. - Added support for more storage adapters, including
SQLite
andshared preferences
. - Implemented a more robust background cleanup mechanism that processes cache items in batches.