{"id":52666,"library":"c-consistent","title":"Consistent Hashing","description":"A Go implementation of consistent hashing for distributing requests across a changing set of servers.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/stathat/consistent","tags":["consistent-hashing","distributed","caching"],"install":[{"cmd":"go get stathat.com/c/consistent","lang":"bash","label":"Install stathat.com/c/consistent"}],"dependencies":[],"imports":[{"symbol":"consistent","correct":"stathat.com/c/consistent"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"stathat.com/c/consistent\"\n)\n\nfunc main() {\n\tc := consistent.New()\n\tc.Add(\"cacheA\")\n\tfmt.Println(c.Get(\"mykey\"))\n}","lang":"go","description":"Create a consistent hash ring and get a server for a key"},"warnings":[],"env_vars":null,"search_vec":"'across':12 'cach':22 'chang':14 'consist':1,7,19 'consistent-hash':18 'distribut':10,21 'go':4 'hash':2,8,20 'implement':5 'request':11 'server':17 'set':15","created_at":"2026-06-15T07:06:30.983398+00:00","updated_at":"2026-06-15T07:06:30.983398+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/stathat/consistent","github":"https://github.com/stathat/consistent","docs":"https://pkg.go.dev/stathat.com/c/consistent#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}}