the redis server that is implemented by golang
-
git clone [email protected]:ha1o0/redis-go.git
-
Install official redis-cli
- For Mac, just use
brew install redis
- For Linux,
apt-get
/yum
... - Or use the source codes to make install manually
- For Mac, just use
-
Start golang-redis-server of this repo(default port is 6378).
go run .
-
Start the official redis client to connect this golang-redis-server by
redis-cli -p 6378
-
Just enjoy redis commands like
ping,get,set,exists,del,rpush,rpop,lpop,llen……
-
有关rpc
- 安装
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- 生成
pb.go
和_grpc.pb.go
使用protoc --go_out=./protos --go-grpc_out=./protos ./protos/hello.proto
- 安装