{"id":39428658,"url":"https://github.com/wupeaking/redgo","last_synced_at":"2026-01-18T04:01:26.001Z","repository":{"id":45560328,"uuid":"91893422","full_name":"wupeaking/redgo","owner":"wupeaking","description":"an key-value database implemented by golang  ","archived":false,"fork":false,"pushed_at":"2017-06-13T10:40:10.000Z","size":1034,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T02:17:33.773Z","etag":null,"topics":["golang","key-value-database","redis"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wupeaking.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}},"created_at":"2017-05-20T14:09:46.000Z","updated_at":"2022-07-14T07:36:43.000Z","dependencies_parsed_at":"2022-07-20T07:16:58.627Z","dependency_job_id":null,"html_url":"https://github.com/wupeaking/redgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wupeaking/redgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wupeaking%2Fredgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wupeaking%2Fredgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wupeaking%2Fredgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wupeaking%2Fredgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wupeaking","download_url":"https://codeload.github.com/wupeaking/redgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wupeaking%2Fredgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["golang","key-value-database","redis"],"created_at":"2026-01-18T04:01:25.911Z","updated_at":"2026-01-18T04:01:25.995Z","avatar_url":"https://github.com/wupeaking.png","language":"Go","readme":"## 一个golang版本的redis的单机数据库实现 (仅仅为了学习)\n\n[![Travis](https://travis-ci.org/wupeaking/redgo.svg?branch=master)](https://travis-ci.org/wupeaking/redgo)\n[![GoDoc](https://godoc.org/github.com/wupeaking/redgo?status.svg)](https://godoc.org/github.com/wupeaking/redgo)\n[![codecov.io](https://codecov.io/gh/wupeaking/redgo/coverage.svg?branch=master)](https://codecov.io/gh/wupeaking/redgo?branch=master)\n\n## 安装\n\u003e 源码build\n\n```shell\n# 1. 要求安装go\n# 2. clone\n\nexport GOPATH=`pwd`\nmkdir -p  $GOPATH/src/github.com/wupeaking \u0026\u0026 cd $GOPATH/src/github.com/wupeaking\ngit clone git@github.com:wupeaking/redgo.git \u0026\u0026 cd redgo\n\n# build\nmake\n```\n\n\u003e 生成docker镜像\n\n```shell\n\n# 1. 要求安装docker\n# 2. clone\n\nmkdir -p  `pwd`/src/github.com/wupeaking \u0026\u0026 cd $GOPATH/src/github.com/wupeaking\ngit clone git@github.com:wupeaking/redgo.git \u0026\u0026 cd redgo\nexport GOPATH=`pwd`\n# 执行make\nmake docker\n\n```\n\n## 在宿主机上使用 \n\n* 增加一个配置文件 config.yaml\n```shell\nhost: 0.0.0.0\nport: 6379\n```\n\n* 启动服务\n```shell\n# ./redgo\n```\n## 在docker环境运行\n```shell\n# 使用默认配置文件\ndocker run -p 6379:6379 --name=redgo -d redgo:v0.0.1 \n# 如果需要更改配置文件 挂载配置文件路径 配置文件名为 config.yaml\ndocker run --net=host -v `pwd`:/etc/redgo --name=redgo -d redgo:v0.0.1 \n```\n\n* 使用redis客户端连接 \n```shell\n# redis-cli\n\u003e set demo helloworld\n\u003e get demo\n\u003e helloworld\n\n\u003e lpush listdemo aa bb cc dd\n\u003e lrange listdemo -1\naa\nbb\ncc\ndd\n\u003e ....\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwupeaking%2Fredgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwupeaking%2Fredgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwupeaking%2Fredgo/lists"}