hivez 0.0.2
hivez: ^0.0.2 copied to clipboard
The cleanest way to use Hive in production. Type-safe, concurrency-safe, boilerplate-free. (Using hive_ce)
0.0.2 #
- Changed
BaseHiveServicetoBaseHivezBoxfor better abstraction and flexibility - Created core functionality, exceptions and base interfaces for Hivez boxes
- Added future support for all operations including isolated boxes
- Updated dart sdk dependency to support up to 4.0.0
- Updated README.md links
0.0.1 #
Initial release of hivez package.
- Introduced
BaseHiveService<K, T>for managing Hive boxes:- Lazy initialization via
ensureInitialized()with overridableonInit()hook - Concurrency-safe operations using
synchronizedWriteandsynchronizedRead - Guarded
boxgetter; throwsHiveServiceInitExceptionif uninitialized - Utilities:
closeBox(),deleteFromDisk(), optional logging viaLogHandleranddebugLog()
- Lazy initialization via
- Added
HiveServiceInitExceptionfor uninitialized service access