{"id":16650675,"url":"https://github.com/dizballanze/hashtable","last_synced_at":"2025-09-16T15:32:26.223Z","repository":{"id":145905908,"uuid":"65455778","full_name":"dizballanze/hashtable","owner":"dizballanze","description":"Async hash table server in C","archived":false,"fork":false,"pushed_at":"2018-07-26T08:03:31.000Z","size":348,"stargazers_count":76,"open_issues_count":0,"forks_count":47,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-29T15:11:23.834Z","etag":null,"topics":["c","hashtable","text-protocol"],"latest_commit_sha":null,"homepage":"","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/dizballanze.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-08-11T09:12:19.000Z","updated_at":"2025-03-05T09:26:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"55c3b024-1fc2-4a32-8be8-e8d7998d45d6","html_url":"https://github.com/dizballanze/hashtable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dizballanze/hashtable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizballanze%2Fhashtable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizballanze%2Fhashtable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizballanze%2Fhashtable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizballanze%2Fhashtable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dizballanze","download_url":"https://codeload.github.com/dizballanze/hashtable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizballanze%2Fhashtable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275440221,"owners_count":25465073,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","hashtable","text-protocol"],"created_at":"2024-10-12T09:18:03.013Z","updated_at":"2025-09-16T15:32:25.922Z","avatar_url":"https://github.com/dizballanze.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"hashtable\n---------\n\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/dizballanze)\n\nSimple async hash table server with text protocol. The project was built for learning purpose only.\n\nFeatures:\n\n- asynchronous TCP server with epoll\n- simple text protocol\n- hash table with opened addressing (double hashing)\n- universal hashing algorithm based on random prime numbers generation\n- string hashing with Horner's rule\n- auto extend table size when fill ratio \u003e= 0.5\n\n![usage example](usage.gif)\n\n## Build\n\nwith Vagrant:\n\n```\ngit clone git@github.com:dizballanze/hashtable.git\ncd hashtable\nvagrant up\nvagrant ssh\ncd proj\nmake\n```\n\n## Protocol\n\nProtocol supports four operations:\n\n- `SET \u003ckey\u003e \u003cvalue\u003e\\n` - sets `\u003ckey\u003e` with `\u003cvalue\u003e`\n- `GET \u003ckey\u003e\\n` - gets `\u003ckey\u003e` from hash table if exists\n- `DELETE \u003ckey\u003e\\n` - remove `\u003ckey\u003e` from hash table if exists\n- `COUNT\\n` - count of items in hash table\n\n## Usage\n\nStart server:\n\n```\n$ ./hashtable 0.0.0.0 31337\nReady to accept connection on 0.0.0.0:31337...\n```\n\nConnect to server (by telnet for example):\n\n```\n$ telnet 127.0.0.1 31337\nConnected to 127.0.0.1.\n\nSET mykey Hello World!\nDONE\n\nGET mykey\nDONE\nHello World!\n\nSET foo bar\nDONE\n\nCOUNT\nDONE\n2\n\nDELETE foo\nDONE\n\nCOUNT\nDONE\n1\n```\n\n## LICENSE\n\nThe MIT License (MIT)\n\nCopyright Yuri Shikanov (c) 2016 \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizballanze%2Fhashtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizballanze%2Fhashtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizballanze%2Fhashtable/lists"}