{"id":16881596,"url":"https://github.com/benbjohnson/jmphash","last_synced_at":"2025-04-07T10:29:47.840Z","repository":{"id":18079749,"uuid":"21143081","full_name":"benbjohnson/jmphash","owner":"benbjohnson","description":"Implementation of the Jump Consistent Hash algorithm in Go.","archived":false,"fork":false,"pushed_at":"2014-12-16T15:46:55.000Z","size":156,"stargazers_count":153,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T09:06:55.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/benbjohnson.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}},"created_at":"2014-06-23T21:35:30.000Z","updated_at":"2024-11-28T16:29:33.000Z","dependencies_parsed_at":"2022-09-04T00:11:49.320Z","dependency_job_id":null,"html_url":"https://github.com/benbjohnson/jmphash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fjmphash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fjmphash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fjmphash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fjmphash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benbjohnson","download_url":"https://codeload.github.com/benbjohnson/jmphash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247635423,"owners_count":20970735,"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":[],"created_at":"2024-10-13T16:04:07.867Z","updated_at":"2025-04-07T10:29:47.821Z","avatar_url":"https://github.com/benbjohnson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"jmphash\n=======\n\nImplementation of the [Jump Consistent Hash algorithm](http://arxiv.org/pdf/1406.2294v1.pdf) in Go.\nThis algorithm performs consistent hashing on integer keys and maps them\nto integer buckets.\n\n\n## Usage\n\nTo use jmphash, simply create a `Hasher` with the number of buckets you want\nto map to and then call the `Hash()` function with your key. This function\nwill return the bucket that your key is mapped to.\n\n```go\nimport \"github.com/benbjohnson/jmphash\"\n\nfunc main() {\n\t// Create a hash with 100 buckets.\n\th := jmphash.NewHasher(100)\n\n\t// Map keys to their appropriate buckets.\n\tbucket := h.Hash(12387)\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fjmphash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenbjohnson%2Fjmphash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fjmphash/lists"}