{"id":63412,"library":"jellydator-ttlcache-v2","title":"TTLCache v2","description":"An in-memory cache with TTL support, thread-safe, and with generics.","status":"active","version":"2.11.1","language":"go","source_language":null,"source_url":"https://github.com/jellydator/ttlcache","tags":["cache","ttl","generics","in-memory"],"install":[{"cmd":"go get github.com/jellydator/ttlcache/v2","lang":"bash","label":"Install github.com/jellydator/ttlcache/v2"}],"dependencies":[],"imports":[{"symbol":"ttlcache","correct":"github.com/jellydator/ttlcache/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\t\"github.com/jellydator/ttlcache/v2\"\n)\n\nfunc main() {\n\tcache := ttlcache.New[string, string]()\n\tcache.Set(\"key\", \"value\", time.Minute)\n\tval, err := cache.Get(\"key\")\n\tif err == nil {\n\t\tfmt.Println(val)\n\t}\n}","lang":"go","description":"Creates a TTL cache and sets a key with a one-minute expiration."},"warnings":[],"env_vars":null,"search_vec":"'cach':7,17 'generic':16,19 'in-memori':4,20 'memori':6,22 'safe':13 'support':10 'thread':12 'thread-saf':11 'ttl':9,18 'ttlcach':1 'v2':2","created_at":"2026-06-17T16:43:39.532384+00:00","updated_at":"2026-06-17T16:43:39.532384+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/v2#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-17","next_check":"2026-12-14","install_tag":null}}