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 }