1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Support Monitor Command (#2830)

* Add monitor command

* Add monitor commadn and tests

* insure goroutine shutdown

* fix data race

* linting

* change timeout explanation

---------

Co-authored-by: Chayim <chayim@users.noreply.github.com>
This commit is contained in:
ofekshenawa
2023-12-17 12:35:10 +02:00
committed by GitHub
parent 631deaf25f
commit 277e8b7d9f
4 changed files with 153 additions and 1 deletions

View File

@ -41,6 +41,11 @@ var (
redisAddr = ":" + redisPort
)
var (
rediStackPort = "6379"
rediStackAddr = ":" + rediStackPort
)
var (
sentinelAddrs = []string{":" + sentinelPort1, ":" + sentinelPort2, ":" + sentinelPort3}