command
module
Version:
v0.0.0-...-3f08b3b
Opens a new window with list of versions in this module.
Published: Sep 3, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
1. 简介
本项目用于测试 redigo 和 go-redis 两个 Golang redis 库的使用,实现的功能很简单,就是分别用两个库去连接各种类型的 redis,并以 100ms 的间隔去对 redis 发送 GET/SET 命令,其间你可以对连接的 redis 进行各种操作,测试客户端是否对 redis 的高可用进行了适配。
同时本项目连接 redis 的代码也可以作为示例代码。
2. 使用方法
-
cd $GOPATH/src
-
git clone https://github.com/atn4517/go_redis_vs_redigo
-
cp go_redis_vs_redigo/config.yaml.example config.yaml
-
对 config.yaml 进行修改
-
go build go_redis_vs_redigo
-
./go_redis_vs_redigo
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.