pond
Simple, local, persistent cache. Backed by SQLite
Example usage
use PathBuf;
use Uuid;
use Cache;
Simple, local, persistent cache. Backed by SQLite
use std::path::PathBuf;
use uuid::Uuid;
use pond_cache::Cache;
fn main() {
let cache = Cache::new(PathBuf::from("./db.sqlite")).unwrap();
let key = Uuid::new_v4();
let value = String::from("Hello, world!");
cache.store(&key, value).unwrap();
let result: Option<String> = cache.get(&key).unwrap();
}