bug fix: setbytes

This commit is contained in:
suguo.yao 2022-01-12 14:29:06 +08:00
parent f998db645e
commit 8fddf71e5c
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func SetBytes(key *string, data *[]byte, timeout time.Duration) error {
conn := pool.Get() conn := pool.Get()
defer conn.Close() 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 return err
} }