nosql_cache_manager 1.0.0 copy "nosql_cache_manager: ^1.0.0" to clipboard
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, and clearAllCache with better error handling
  • Batch Operations: New setBatch, getBatch, and deleteBatch methods for efficient bulk operations
  • Cache Analytics: Added getCacheSize, getAllKeys, and hasKey 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
1
likes
150
points
26
downloads

Publisher

verified publisherhorizondevelopers.cloud

Weekly Downloads

A powerful Flutter cache manager with automatic expiration, batch operations, and comprehensive cache management using Sembast NoSQL database.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_provider, sembast

More

Packages that depend on nosql_cache_manager