{"id":51067,"library":"hashicorp-golang-lru-v2","title":"golang-lru","description":"A Go library providing three different LRU cache implementations with varying sophistication.","status":"active","version":"2.0.7","language":"go","source_language":null,"source_url":"https://github.com/hashicorp/golang-lru","tags":["cache","lru","data-structure","utility"],"install":[{"cmd":"go get github.com/hashicorp/golang-lru/v2","lang":"bash","label":"Install github.com/hashicorp/golang-lru/v2"}],"dependencies":[],"imports":[{"symbol":"lru","correct":"github.com/hashicorp/golang-lru/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/hashicorp/golang-lru/v2\"\n)\n\nfunc main() {\n\tcache, _ := lru.New[int, string](100)\n\tcache.Add(1, \"one\")\n\tif val, ok := cache.Get(1); ok {\n\t\tfmt.Println(val)\n\t}\n}","lang":"go","description":"Create and use a simple LRU cache."},"warnings":[],"env_vars":null,"search_vec":"'cach':11,16 'data':19 'data-structur':18 'differ':9 'go':5 'golang':2 'golang-lru':1 'implement':12 'librari':6 'lru':3,10,17 'provid':7 'sophist':15 'structur':20 'three':8 'util':21 'vari':14","created_at":"2026-06-15T05:58:39.224085+00:00","updated_at":"2026-06-15T05:58:39.224085+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/hashicorp/golang-lru","github":"https://github.com/hashicorp/golang-lru","docs":"https://pkg.go.dev/github.com/hashicorp/golang-lru/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-15","next_check":"2026-12-12","install_tag":null}}