{"id":17339899,"url":"https://github.com/tg123/consistentsharp","last_synced_at":"2025-08-01T15:31:09.062Z","repository":{"id":139395002,"uuid":"57903020","full_name":"tg123/ConsistentSharp","owner":"tg123","description":"Consistent hash for dotnet core. port from go version https://github.com/stathat/consistent","archived":false,"fork":false,"pushed_at":"2020-03-12T12:49:32.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T00:29:10.992Z","etag":null,"topics":["consistent-hashing","dotnet-core"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/ConsistentSharp/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tg123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-02T16:14:17.000Z","updated_at":"2020-03-12T12:49:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"d151d876-010c-4c84-8f2d-10d24a424b0d","html_url":"https://github.com/tg123/ConsistentSharp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tg123%2FConsistentSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tg123%2FConsistentSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tg123%2FConsistentSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tg123%2FConsistentSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tg123","download_url":"https://codeload.github.com/tg123/ConsistentSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228389098,"owners_count":17912186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consistent-hashing","dotnet-core"],"created_at":"2024-10-15T15:43:25.072Z","updated_at":"2024-12-05T23:40:20.496Z","avatar_url":"https://github.com/tg123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConsistentSharp\nPort https://github.com/stathat/consistent into C#\n\n## Install\n\n[![NuGet version](https://badge.fury.io/nu/ConsistentSharp.svg)](https://badge.fury.io/nu/ConsistentSharp)\n![](https://github.com/tg123/ConsistentSharp/workflows/.NET%20Core/badge.svg)\n\n```\nInstall-Package ConsistentSharp \n```\n\n## Usage\n\n```\nvar c = new ConsistentHash();\n\nc.Add(\"cacheA\");\nc.Add(\"cacheB\");\nc.Add(\"cacheC\");\n\nvar users = new[] {\"user_mcnulty\", \"user_bunk\", \"user_omar\", \"user_bunny\", \"user_stringer\"};\n\nConsole.WriteLine(c.Get(\"user_mcnulty\"));  // cacheA\n\nc.Add(\"cacheD\");\nc.Add(\"cacheE\");\nConsole.WriteLine(c.Get(\"user_mcnulty\"));  // cacheE\n\n\nc.Remove(\"cacheD\");\nc.Remove(\"cacheE\");\nConsole.WriteLine(c.Get(\"user_mcnulty\"));  // cacheA\n\nc.Remove(\"cacheC\");\nConsole.WriteLine(c.Get(\"user_mcnulty\"));  // cacheA\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftg123%2Fconsistentsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftg123%2Fconsistentsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftg123%2Fconsistentsharp/lists"}