From 439687d90121e140dc86640df34c3db1d71e5ce5 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Mon, 28 Aug 2023 18:46:02 +0800 Subject: [PATCH] =?UTF-8?q?online=5Fstatus=E8=BF=81=E7=A7=BB=E5=88=B0redis?= =?UTF-8?q?-cluster?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/tim_m/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domain/model/tim_m/user.go b/domain/model/tim_m/user.go index 16e05cc..c88e3f5 100644 --- a/domain/model/tim_m/user.go +++ b/domain/model/tim_m/user.go @@ -387,10 +387,10 @@ func getOnlineStatus(extIds []string) ([]interface{}, error) { for _, e := range extIds { keys = append(keys, redis_key.GetOnLineStatusKey(e)) } - return redisCli.RedisClient.MGet(context.Background(), keys...).Result() + return redisCli.RedisClusterClient.MGet(context.Background(), keys...).Result() } func setOnlineStatus(extId string, status uint, ttl time.Duration) error { key := redis_key.GetOnLineStatusKey(extId) - return redisCli.RedisClient.Set(context.Background(), key, status, ttl).Err() + return redisCli.RedisClusterClient.Set(context.Background(), key, status, ttl).Err() } -- 2.22.0