From 8fddf71e5c2d1abddccc5f09548f4e115fe84557 Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Wed, 12 Jan 2022 14:29:06 +0800 Subject: [PATCH] bug fix: setbytes --- redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/redis.go b/redis/redis.go index dc7e54d..32c9bed 100644 --- a/redis/redis.go +++ b/redis/redis.go @@ -93,7 +93,7 @@ func SetBytes(key *string, data *[]byte, timeout time.Duration) error { conn := pool.Get() defer conn.Close() - _, err := conn.Do("SETEX", key, int64(timeout/time.Second), *data) + _, err := conn.Do("SETEX", *key, int64(timeout/time.Second), *data) return err }