5 unstable releases
new 0.3.0 | May 16, 2024 |
---|---|
0.2.0 | May 16, 2024 |
0.1.3 | Jun 3, 2023 |
#102 in Caching
297 downloads per month
17KB
346 lines
pond
Simple, local, persistent cache. Backed by SQLite
Example usage
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();
}
Dependencies
~23MB
~432K SLoC