bug fix: setbytes
This commit is contained in:
parent
f998db645e
commit
8fddf71e5c
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue