1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! # rskv: A High-Performance Key-Value Store in Rust
//!
//! `rskv` is a high-performance, concurrent, persistent key-value store inspired by
//! Microsoft's FASTER. It leverages modern Rust features for safety and performance.
//!
//! ## Core Features
//!
//! - **Hybrid Storage Engine**: Combines in-memory hot data with disk-backed log
//! - **Concurrent Hash Index**: Lock-free hash index for fast key lookups
//! - **Non-Blocking Checkpoints**: Consistent snapshots without pausing operations
//! - **Epoch-Based Garbage Collection**: Safe background space reclamation
//!
//! ## Example
//!
//! ```rust,ignore
//! use rskv::{RsKv, Config};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = Config::default();
//! let kv_store = RsKv::new(config).await?;
//!
//! let key = b"hello".to_vec();
//! let value = b"world".to_vec();
//!
//! kv_store.upsert(key.clone(), value).await?;
//! let result = kv_store.read(&key).await?;
//!
//! println!("Value: {:?}", result);
//! Ok(())
//! }
//! ```
// Re-export commonly used types
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
// Re-export main types
pub use ;