3 releases
0.1.3 | Jun 3, 2023 |
---|---|
0.1.2 | Jun 3, 2023 |
0.1.1 | Jun 3, 2023 |
0.1.0 |
|
#212 in Caching
17KB
290 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
~438K SLoC