{"id":73626,"library":"aspiesoft-go-ttlcache","title":"go-ttlcache","description":"A Go library providing a time-to-live (TTL) cache with automatic expiration of entries.","status":"active","version":"1.2.2","language":"go","source_language":null,"source_url":"https://github.com/AspieSoft/go-ttlcache","tags":["cache","ttl","expiration","key-value"],"install":[{"cmd":"go get github.com/AspieSoft/go-ttlcache","lang":"bash","label":"Install github.com/AspieSoft/go-ttlcache"}],"dependencies":[],"imports":[{"symbol":"ttlcache","correct":"github.com/AspieSoft/go-ttlcache"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\t\"github.com/AspieSoft/go-ttlcache\"\n)\n\nfunc main() {\n\tcache := ttlcache.NewCache(5 * time.Minute)\n\tcache.Set(\"key\", \"value\")\n\tval, ok := cache.Get(\"key\")\n\tif ok {\n\t\tfmt.Println(val)\n\t}\n}","lang":"go","description":"Creates a TTL cache, sets a key-value pair, and retrieves it."},"warnings":[],"env_vars":null,"search_vec":"'automat':16 'cach':14,20 'entri':19 'expir':17,22 'go':2,5 'go-ttlcach':1 'key':24 'key-valu':23 'librari':6 'live':12 'provid':7 'time':10 'time-to-l':9 'ttl':13,21 'ttlcach':3 'valu':25","created_at":"2026-06-17T18:53:16.605953+00:00","updated_at":"2026-06-17T18:53:16.605953+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/AspieSoft/go-ttlcache","github":"https://github.com/AspieSoft/go-ttlcache","docs":"https://pkg.go.dev/github.com/AspieSoft/go-ttlcache#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}}