vsdb_slot_db
A skip-list like index cache.
A Skip List-like index cache, based on the powerful vsdb crate.
If you have a large key-value database and need high-performance pagination or data analysis, this crate could be a great tool for you.
Installation
Add this to your Cargo.toml:
[]
= "4.0"
Usage
SlotDB is a skip-list-like index cache that can be used for high-performance pagination and data analysis.
use ;
// Create a new SlotDB with a maximum of 16 entries per slot
let mut db: = new;
// Insert some data with slot numbers
db.insert.unwrap;
db.insert.unwrap;
db.insert.unwrap;
// Get entries by page
let page1 = db.get_entries_by_page;
assert_eq!;
// Get entries by page with a specific slot range
let page2 = db.get_entries_by_page_slot;
assert_eq!;
assert_eq!;
assert_eq!;
License
This project is licensed under the MIT license.