{"id":20524106,"url":"https://github.com/kimi0230/redisipcountry","last_synced_at":"2026-05-09T07:35:19.896Z","repository":{"id":105027117,"uuid":"390650589","full_name":"kimi0230/RedisIPCountry","owner":"kimi0230","description":"Mapping IP to Country use go-redis/redis/v8","archived":false,"fork":false,"pushed_at":"2021-08-02T09:47:03.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-16T10:55:17.271Z","etag":null,"topics":["docker-compose","golang","redis","redis-client","redis-go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimi0230.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-29T08:13:12.000Z","updated_at":"2021-09-08T09:32:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f63b3628-cab6-4159-ba4c-d0a6711d9263","html_url":"https://github.com/kimi0230/RedisIPCountry","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/kimi0230%2FRedisIPCountry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimi0230%2FRedisIPCountry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimi0230%2FRedisIPCountry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimi0230%2FRedisIPCountry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimi0230","download_url":"https://codeload.github.com/kimi0230/RedisIPCountry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242128325,"owners_count":20076177,"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":["docker-compose","golang","redis","redis-client","redis-go"],"created_at":"2024-11-15T22:47:53.458Z","updated_at":"2026-05-09T07:35:14.873Z","avatar_url":"https://github.com/kimi0230.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis IP to Country\nMapping IP to Country use [go-redis/redis/v8](https://github.com/go-redis/redis)\n\n## GeoLite2 City\n1. sign up : https://www.maxmind.com/en/home\n2. guide : https://blog.csdn.net/qq_26373925/article/details/111876765\n## Run\n### config\nPath : `config/config.go`\n\n``` go\n// config for redis\nvar (\n\t// Addr = \"redis-ipcountry-redis:6379\" // for docker\n\tAddr     = \"127.0.0.1:6379\" // for localhost\n\tPassword = \"\"\n\tDB       = 1\n)\n\n// file path for ip to country\nconst FilePath = \"../asset/GeoLite2-City-CSV/\"\n```\n\n### start service\n``` shell\ndocker-compose up -d\n```\n\n### shutdown\n``` shell\ndocker-compose down\n```\n\n### Reference\n* [go-redis 連接池](https://www.huaweicloud.com/articles/db24f1e8b4a4f0218ddf08463d8ec871.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimi0230%2Fredisipcountry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimi0230%2Fredisipcountry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimi0230%2Fredisipcountry/lists"}