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, andclearAllCachewith better error handling - Batch Operations: New
setBatch,getBatch, anddeleteBatchmethods for efficient bulk operations - Cache Analytics: Added
getCacheSize,getAllKeys, andhasKeymethods for cache introspection - Smart Cleanup: New
cleanExpired()method to remove expired entries and free up storage - Initialization Control: Added
isInitializedproperty 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