durable_queue_hive 1.0.1
durable_queue_hive: ^1.0.1 copied to clipboard
Hive storage for durable_queue, on hive_ce. Tasks survive restarts and crashes on mobile, desktop, and web.
1.0.1 #
- Requires
durable_queue1.1.0 or later. Hive storage does not keep queue state (QueueStateStorage), so rate limits start empty after a restart, as before.
1.0.0 #
- First stable release, for
durable_queue1.0. No API changes from 0.1.0; breaking changes now wait for 2.0.
0.1.0 #
- Initial release.
HiveQueueStorage:QueueStorageon ahive_ceBox<String>, one JSON entry per task, with an indexed in-memory view for queries.HiveQueueStorage.openopens the box;flushEachWrite(on by default) flushes every write to disk.- Ids longer than Hive's 255-byte key limit are stored under a SHA-256 hash.
- A failed box write is undone in the view.
- Tested with the shared storage contract on real Hive files, a writer process killed with SIGKILL, a write cut off at the end of the file, and in a browser (IndexedDB).