- Library: go-redis
- Library version : v8.2.2
- Runtime Version: go 1.14
- RS version: 6.0.8-32
- OSS Redis: 6.0.6
| Simple | Sentinel | Cluster | |
|---|---|---|---|
| Y | Y | Y | |
| TLS | Y | N* | Y |
- N/A : Not Available
- N/C : Not researched or checked
- Popular library.
- Sentinel with TLS does not work , sample is provided but seems to be a bug where
tls.configis not passed when connecting to master. and following error is shownERR unencrypted connection is prohibited - A universal client is also available that depending on config options supports simple, sentinel and cluster
Install golang
use go build to build each sample
Password is optional for all samples
cd go-redis/simple
go build
./simple host port passwordcd go-redis/sentinel
go build
./sentinel sentinelhost sentinelport service passwordcd go-redis/cluster
go build
./cluster host port passwordcd go-redis/simpletls
go build
./simpletls host port passwordcd go-redis/clustertls
go build
./clustertls host port password