nosql_cache_manager 1.0.0
nosql_cache_manager: ^1.0.0 copied to clipboard
A powerful Flutter cache manager with automatic expiration, batch operations, and comprehensive cache management using Sembast NoSQL database.
1.0.0 #
π Initial Release - Complete Rewrite with TDD #
β¨ New Features
- Enhanced Core Operations: Improved
setCache
,getCache
,deleteCache
, andclearAllCache
with better error handling - Batch Operations: New
setBatch
,getBatch
, anddeleteBatch
methods for efficient bulk operations - Cache Analytics: Added
getCacheSize
,getAllKeys
, andhasKey
methods for cache introspection - Smart Cleanup: New
cleanExpired()
method to remove expired entries and free up storage - Initialization Control: Added
isInitialized
property and improved initialization logic - Resource Management: New
close()
method for proper database connection cleanup - Transaction Support: Batch operations use database transactions for consistency
π§ Improvements
- Better Documentation: Comprehensive inline documentation for all public methods
- Type Safety: Enhanced support for complex nested data structures
- Error Handling: Robust error handling for corrupted cache entries
- Performance: Optimized database operations with proper transaction usage
- Testing: Complete test suite with 20+ test cases covering all functionality
π§ͺ Testing Infrastructure
- Test-Driven Development approach with comprehensive test coverage
- Mock path provider for reliable testing environment
- Tests for expiration behavior, batch operations, and edge cases
- Performance and stress testing scenarios
π Documentation
- Completely rewritten README with usage examples and best practices
- Advanced usage patterns for API caching and offline-first strategies
- Performance optimization guidelines and common pitfalls
- Comprehensive API documentation with examples
π οΈ Technical Improvements
- Removed unnecessary import (sembast.dart) as noted in static analysis
- Better JSON serialization handling for complex data types
- Improved database initialization and connection management
- Enhanced expiration logic with automatic cleanup on access