{"id":18893604,"url":"https://github.com/shgopher/cmap","last_synced_at":"2026-02-27T02:30:16.320Z","repository":{"id":114581513,"uuid":"329361767","full_name":"shgopher/cmap","owner":"shgopher","description":"go实现一个分片的哈希表","archived":false,"fork":false,"pushed_at":"2021-01-14T17:03:26.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-05T23:31:27.976Z","etag":null,"topics":["fasthashmap","fastmap","hash","hashtable","map"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shgopher.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":"2021-01-13T16:10:02.000Z","updated_at":"2024-06-19T06:35:46.863Z","dependencies_parsed_at":"2023-04-12T13:46:36.137Z","dependency_job_id":null,"html_url":"https://github.com/shgopher/cmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Fcmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Fcmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Fcmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Fcmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgopher","download_url":"https://codeload.github.com/shgopher/cmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"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":["fasthashmap","fastmap","hash","hashtable","map"],"created_at":"2024-11-08T08:14:35.534Z","updated_at":"2026-02-27T02:30:14.225Z","avatar_url":"https://github.com/shgopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# go实现一个分片的哈希表\n\n使用方法：\n\n````go\n// 线程安全\ncs := NewCamp()\ncs.Set(\"shgopher\",shgopher)\ncs.Get(\"shgopher\")\n````\n\n本方法就是一种使用了，一致性哈希，然后将问题分布式的一种算法。通过哈希函数，将这些写入和读取的过程分为不同的组去处理，然后锁的颗粒度自然就降低了\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Fcmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgopher%2Fcmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Fcmap/lists"}