7 Star 84 Fork 14

waterloocode / redisbygo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

RedisServerByGo( 开发中... )

English

这是一个golang实现的redis服务器

如果发现了bug,或者有相关的建议,可以提出来。

还有很多功能需要实现,但是基本的结构已经完备了。我有时间会持续开发的。

本项目是本着学习的目的,毕竟 go 在内存效率方面是无法和 c 比拟的,所以也不考虑能用在生产环境。

分支说明

dev 分支是开发分支,可能无法运行,请使用 master 测试学习。

Repository

已支持

  • 加载配置文件
  • 加载aof文件
  • ping 命令
  • echo 命令
  • pubsub 命令
  • subscribe 命令
  • get 命令
  • set 命令
  • select 命令

用法

make
cp server.example.json server.json

win

./build/windows/redis.exe

mac

./build/darwin/redis

linux

./build/linux/redis

测试

redis-benchmark -h 127.0.0.1 -p 6378 -n 100000 -c 1000

参考

Redis 官方文档

MIT License Copyright (c) 2020 ccb1900 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

参考redis源码,用golang写了一个redis服务器 展开 收起
Go 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/waterloocode/redisbygo.git
git@gitee.com:waterloocode/redisbygo.git
waterloocode
redisbygo
redisbygo
dev

搜索帮助