pub mod concurrent;
pub mod deletion;
pub mod encoding;
pub mod engine;
pub mod error;
pub mod hash;
pub mod layout;
pub mod maplet;
pub mod operators;
pub mod quotient_filter;
pub mod resize;
pub mod storage;
pub mod ttl;
pub mod types;
pub use engine::{Engine, EngineConfig, EngineStats};
pub use maplet::Maplet;
pub use operators::{
CounterOperator, MaxOperator, MergeOperator, MinOperator, SetOperator, StringOperator,
VectorOperator,
};
pub use storage::{PersistenceMode, Storage, StorageConfig, StorageStats};
pub use ttl::{TTLConfig, TTLEntry, TTLManager, TTLStats};
pub use types::{MapletError, MapletResult, MapletStats};
pub type Result<T> = std::result::Result<T, MapletError>;
#[cfg(test)]
mod tests {
use super::*;
#[tokio::test]
async fn test_basic_maplet_creation() {
let maplet = Maplet::<String, u64, CounterOperator>::new(100, 0.01).unwrap();
assert_eq!(maplet.len().await, 0);
assert!(maplet.error_rate() <= 0.01);
}
}