use std::sync::Arc;
use candystore::{CandyStore, CandyTypedStore, Config, Result};
fn main() -> Result<()> {
_ = std::fs::remove_dir_all("/tmp/candy-dir");
let db = Arc::new(CandyStore::open("/tmp/candy-dir", Config::default())?);
let typed = CandyTypedStore::<String, Vec<u32>>::new(db);
typed.set("hello", &vec![1, 2, 3])?;
println!("{:?}", typed.get("hello")?);
typed.remove("hello")?;
println!("{:?}", typed.contains("hello")?);
Ok(())
}