From 433cd1f8bcc4dc9a999e42a49af9f890c22f9295 Mon Sep 17 00:00:00 2001 From: "david.yan" Date: Thu, 27 Mar 2025 02:49:44 +0800 Subject: [PATCH] fix hash key --- cache/redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/redis/redis.go b/cache/redis/redis.go index 5dcdca2..f1a6f0c 100644 --- a/cache/redis/redis.go +++ b/cache/redis/redis.go @@ -59,6 +59,6 @@ func New(dsn string, hashRadix string) *RedisClient { func Hash(s string) int { h := fnv.New32a() - h.Write([]byte(s)) + h.Write([]byte(strings.ToLower(s))) return int(h.Sum32()) % vars.RedisShardings }