{"id":64340,"library":"floattech-ttl","title":"TTL Map","description":"A synchronized map that automatically expires entries after a configurable time-to-live.","status":"active","version":"0.0.0-20250224042757-92c827b4da8a","language":"go","source_language":null,"source_url":"https://github.com/FloatTech/ttl","tags":["cache","ttl","map","expiry"],"install":[{"cmd":"go get github.com/FloatTech/ttl","lang":"bash","label":"Install github.com/FloatTech/ttl"}],"dependencies":[],"imports":[{"symbol":"ttl","correct":"github.com/FloatTech/ttl"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/FloatTech/ttl\"\n)\n\nfunc main() {\n\tm := ttl.NewMap()\n\tm.Set(\"key\", \"value\", 0)\n\tval, ok := m.Get(\"key\")\n\tfmt.Println(val, ok)\n}","lang":"go","description":"Creates a new TTL map, sets a key, and retrieves it."},"warnings":[],"env_vars":null,"search_vec":"'automat':7 'cach':17 'configur':12 'entri':9 'expir':8 'expiri':20 'live':16 'map':2,5,19 'synchron':4 'time':14 'time-to-l':13 'ttl':1,18","created_at":"2026-06-17T16:54:53.088909+00:00","updated_at":"2026-06-17T16:54:53.088909+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/FloatTech/ttl","github":"https://github.com/FloatTech/ttl","docs":"https://pkg.go.dev/github.com/FloatTech/ttl#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}}