From b5e512339608aba1258fa6e06953b881c308bd00 Mon Sep 17 00:00:00 2001 From: LiuWei Date: Wed, 17 Mar 2021 14:24:25 +0800 Subject: [PATCH] fix: CSRedisClientLock can't get instance in refresh when have multi redishleper --- src/CSRedisCore/CSRedisClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSRedisCore/CSRedisClient.cs b/src/CSRedisCore/CSRedisClient.cs index f18d433..3c5289c 100644 --- a/src/CSRedisCore/CSRedisClient.cs +++ b/src/CSRedisCore/CSRedisClient.cs @@ -4407,7 +4407,7 @@ public bool Delay(int milliseconds) /// 成功/失败 public bool Refresh(int milliseconds) { - var ret = RedisHelper.Eval(@"local gva = redis.call('GET', KEYS[1]) + var ret = _client.Eval(@"local gva = redis.call('GET', KEYS[1]) if gva == ARGV[1] then redis.call('PEXPIRE', KEYS[1], ARGV[2]) return 1