1 unstable release
0.1.0 | Jul 19, 2019 |
---|
#25 in #leveldb
Used in agilulf_driver
125KB
3K
SLoC
A fast and asynchronous KV database
lib.rs
:
A simple but fast KV database (like )
This crate provide an abstraction layer of AsyncDatabase. User can select which database to use easily. Any struct implements AsyncDatabase trait can construct a TCP server.
It actually also provides some implementation of it:
-
Database stores data as LSM structure in disk.
-
MemDatabase uses a lock-free skiplist to store data in Memory. Note: with the increasing of the data size, it will become slower and slower.
TCP Server is built with romio and futures-preview. It spawns every connected tcp stream on a ThreadPool.
Dependencies
~10–19MB
~249K SLoC