{"id":18431306,"url":"https://github.com/zhan3333/gredis","last_synced_at":"2025-04-13T22:57:42.881Z","repository":{"id":102224748,"uuid":"287863585","full_name":"zhan3333/gredis","owner":"zhan3333","description":"go framework go-redis manger","archived":false,"fork":false,"pushed_at":"2020-08-16T03:05:41.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T22:57:40.038Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhan3333.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":"2020-08-16T03:05:21.000Z","updated_at":"2020-08-16T03:05:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0719a10-37e9-4a38-a841-898a96c3758d","html_url":"https://github.com/zhan3333/gredis","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/zhan3333%2Fgredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fgredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fgredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fgredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhan3333","download_url":"https://codeload.github.com/zhan3333/gredis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794571,"owners_count":21162614,"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-11-06T05:24:17.566Z","updated_at":"2025-04-13T22:57:42.862Z","avatar_url":"https://github.com/zhan3333.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gredis\n\ngo-redis 连接管理\n\n## 使用\n\n```bash\n go get github.com/zhan3333/gredis@master \n```\n\n使用前需要初始化配置:\n\n```go\npackage main\nimport \"github.com/zhan3333/gredis\"\n\nfunc main() {\n    gredis.Configs = map[string]gredis.Conf{\n        gredis.DefaultConn: {\n            Host:     \"127.0.0.1\",\n            Password: \"\",\n            Port:     6379,\n            Database: 0,\n        },\n        \"customize\": {\n            Host:     \"127.0.0.1\",\n            Password: \"\",\n            Port:     6379,\n            Database: 1,\n        },\n    }\n    gredis.DefaultConn = \"default\"\n    // 若需要重置配置, 需要调用 gredis.Reset()\n    gredis.Def().Set(\"test\", \"test\")\n    gredis.Def().Get(\"test\")\n    gredis.Conn(\"customize\").Set(\"foo\", \"bar\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fgredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhan3333%2Fgredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fgredis/lists"}