{"id":73721,"library":"retainer","title":"Retainer","description":"Minimal async cache with support for key expirations.","status":"active","version":"0.4.0","language":"rust","source_language":null,"source_url":"https://github.com/whitfin/retainer","tags":["cache","async","expiration","key-value"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nretainer = \"0.4.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add retainer","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Cache","correct":"use retainer::Cache;"}],"quickstart":{"code":"use retainer::Cache;\n\n#[tokio::main]\nasync fn main() {\n    let cache = Cache::new();\n    cache.insert(\"key\", \"value\").await;\n    println!(\"{:?}\", cache.get(\"key\").await);\n}","lang":"rust","description":"Create an async cache and insert/retrieve a value."},"warnings":[{"fix":"Add tokio as a dependency and use #[tokio::main] or another runtime.","message":"Requires an async runtime like Tokio.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'async':3,11 'cach':4,10 'expir':9,12 'key':8,14 'key-valu':13 'minim':2 'retain':1 'support':6 'valu':15","created_at":"2026-06-17T18:54:15.002942+00:00","updated_at":"2026-06-17T18:54:15.002942+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/whitfin/retainer","github":"https://github.com/whitfin/retainer","docs":"https://docs.rs/retainer/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}