- 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.config
is 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 password
cd go-redis/sentinel
go build
./sentinel sentinelhost sentinelport service password
cd go-redis/cluster
go build
./cluster host port password
cd go-redis/simpletls
go build
./simpletls host port password
cd go-redis/clustertls
go build
./clustertls host port password