{"id":53166,"library":"stathat-consistent","title":"consistent","description":"Package consistent provides a consistent hashing function for distributing keys across nodes.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/stathat/consistent","tags":["consistent","hashing","distributed","load-balancing"],"install":[{"cmd":"go get github.com/stathat/consistent","lang":"bash","label":"Install github.com/stathat/consistent"}],"dependencies":[],"imports":[{"symbol":"consistent","correct":"github.com/stathat/consistent"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/stathat/consistent\"\n)\n\nfunc main() {\n\tc := consistent.New()\n\tc.Add(\"node1\")\n\tc.Add(\"node2\")\n\tkey, err := c.Get(\"mykey\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"Key maps to:\", key)\n}","lang":"go","description":"Create a consistent hash ring and map a key to a node."},"warnings":[],"env_vars":null,"search_vec":"'across':12 'balanc':19 'consist':1,3,6,14 'distribut':10,16 'function':8 'hash':7,15 'key':11 'load':18 'load-balanc':17 'node':13 'packag':2 'provid':4","created_at":"2026-06-15T07:29:41.060943+00:00","updated_at":"2026-06-15T07:29:41.060943+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/github.com/stathat/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}}