//! 存储模块

use anyhow::Result;

pub struct Storage {
    path: String,
}

impl Storage {
    pub fn new(path: &str) -> Self {
        Self {
            path: path.to_string(),
        }
    }
    
    pub fn save(&self, key: &str, value: &[u8]) -> Result<()> {
        // 后续实现：使用 sled 存储
        todo!("Implement storage save for key: {}", key)
    }
    
    pub fn load(&self, key: &str) -> Result<Vec<u8>> {
        // 后续实现：使用 sled 加载
        todo!("Implement storage load for key: {}", key)
    }
}