{"id":19678272,"url":"https://github.com/justlorain/ezcache","last_synced_at":"2026-06-12T00:31:42.100Z","repository":{"id":238915963,"uuid":"797566912","full_name":"justlorain/ezcache","owner":"justlorain","description":"EZCache","archived":false,"fork":false,"pushed_at":"2024-06-23T06:04:55.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T06:17:41.673Z","etag":null,"topics":["cache","consistent-hash","go"],"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/justlorain.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":"2024-05-08T05:05:52.000Z","updated_at":"2024-06-23T06:04:58.000Z","dependencies_parsed_at":"2024-05-13T06:27:37.963Z","dependency_job_id":"199f1570-ee8d-4760-bb9c-2855f58a77f3","html_url":"https://github.com/justlorain/ezcache","commit_stats":null,"previous_names":["justlorain/ezcache"],"tags_count":1,"template":false,"template_full_name":"B1NARY-GR0UP/.github","purl":"pkg:github/justlorain/ezcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlorain%2Fezcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlorain%2Fezcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlorain%2Fezcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlorain%2Fezcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justlorain","download_url":"https://codeload.github.com/justlorain/ezcache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlorain%2Fezcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34224103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["cache","consistent-hash","go"],"created_at":"2024-11-11T17:36:43.702Z","updated_at":"2026-06-12T00:31:42.077Z","avatar_url":"https://github.com/justlorain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EZCache\n\n## Install\n\n```shell\ngo get -u github.com/justlorain/ezcache\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"strings\"\n\n\t\"github.com/justlorain/ezcache\"\n)\n\nfunc main() {\n\taddrs := ParseFlags()\n\te := ezcache.NewEngine(addrs[0])\n\te.RegisterNodes(addrs...)\n\tif err := e.Run(); err != nil {\n\t\treturn\n\t}\n}\n\n// ParseFlags e.g.\n// go run . --addrs=http://localhost:7246,http://localhost:7247,http://localhost:7248\n// go run . --addrs=http://localhost:7247,http://localhost:7248,http://localhost:7246\n// go run . --addrs=http://localhost:7248,http://localhost:7246,http://localhost:7247\n// NOTE: first addr is local node\nfunc ParseFlags() []string {\n\tvar addrsFlag string\n\tflag.StringVar(\u0026addrsFlag, \"addrs\", \"\", \"nodes addresses\")\n\tflag.Parse()\n\treturn strings.Split(addrsFlag, \",\")\n}\n```\n\n## Configuration\n\n| Option                   | Default              | Description                               |\n|--------------------------|----------------------|-------------------------------------------|\n| ` WithBasePath`          | `/_ezcache`          | Define base path of server                |\n| ` WithReplicationFactor` | `10`                 | Define consistent hash replication factor |\n| ` WithHashFunc`          | `crc32.ChecksumIEEE` | Define hash func used by consistent hash  |\n\n## License\n\nEZCache is distributed under the [Apache License 2.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustlorain%2Fezcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustlorain%2Fezcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustlorain%2Fezcache/lists"}