{"id":53037,"library":"jellydator-ttlcache-v3","title":"ttlcache","description":"In-memory cache with per-entry TTL (time-to-live) and automatic expiration.","status":"active","version":"3.3.0","language":"go","source_language":null,"source_url":"https://github.com/jellydator/ttlcache","tags":["cache","ttl","in-memory","expiration"],"install":[{"cmd":"go get github.com/jellydator/ttlcache/v3","lang":"bash","label":"Install github.com/jellydator/ttlcache/v3"}],"dependencies":[],"imports":[{"symbol":"ttlcache","correct":"github.com/jellydator/ttlcache/v3"}],"quickstart":{"code":"package main\n\nimport (\n    \"fmt\"\n    \"time\"\n    \"github.com/jellydator/ttlcache/v3\"\n)\n\nfunc main() {\n    cache := ttlcache.New[string, string]()\n    cache.Set(\"key\", \"value\", time.Minute)\n    val, _ := cache.Get(\"key\")\n    fmt.Println(val.Value())\n}","lang":"go","description":"Create and use a TTL cache"},"warnings":[],"env_vars":null,"search_vec":"'automat':16 'cach':5,18 'entri':9 'expir':17,23 'in-memori':2,20 'live':14 'memori':4,22 'per':8 'per-entri':7 'time':12 'time-to-l':11 'ttl':10,19 'ttlcach':1","created_at":"2026-06-15T07:24:31.407154+00:00","updated_at":"2026-06-15T07:24:31.407154+00:00","problems":[],"ecosystem":"go","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/jellydator/ttlcache","github":"https://github.com/jellydator/ttlcache","docs":"https://pkg.go.dev/github.com/jellydator/ttlcache/v3#section-documentation","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-15","next_check":"2026-12-12","install_tag":null}}