queue-file
queue-file is a lightning-fast, transactional, file-based FIFO.
Addition and removal of an element from the queue is an O(1) operation and is atomic. Writes are synchronous by default; data will be written to disk before an operation returns.
queue-file crate is a feature complete and binary compatible port of QueueFile
class from
Tape2 by Square, Inc. Check the original project here.
Usage
To use queue-file
, first add this to your Cargo.toml
:
[]
= "1"
Example
use QueueFile;
MSRV
Current MSRV is 1.58.1
License
This project is licensed under the Apache 2.0 license.