wedb_embed 0.1.0

Embedded Kvrocks-compatible storage engine for WeDb
Documentation
use serde::{Deserialize, Serialize};

/// 嵌入式数据库配置
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Conf {
    pub data_path: String,
    pub cache_size: Option<usize>,
    pub compression: Option<String>,
}

impl Default for Conf {
    fn default() -> Self {
        Self {
            data_path: "./data".to_string(),
            cache_size: None,
            compression: Some("lz4".to_string()),
        }
    }
}