forked from mirror/redis
commit
89b72c9e2a
|
@ -4,16 +4,17 @@ package fuzz
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/go-redis/redis"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
ctx = context.Background()
|
||||
rdb *Client
|
||||
rdb *redis.Client
|
||||
)
|
||||
|
||||
func init() {
|
||||
rdb = NewClient(&Options{
|
||||
rdb = redis.NewClient(&redis.Options{
|
||||
Addr: ":6379",
|
||||
DialTimeout: 10 * time.Second,
|
||||
ReadTimeout: 10 * time.Second,
|
||||
|
|
Loading…
Reference in New Issue