mirror of
https://github.com/redis/go-redis.git
synced 2025-06-14 01:21:30 +03:00
Add redis cluster benchmark results.
This commit is contained in:
@ -12,9 +12,14 @@ import (
|
||||
var client *redis.Client
|
||||
|
||||
func init() {
|
||||
opt := redisOptions()
|
||||
opt.Addr = ":6379"
|
||||
client = redis.NewClient(opt)
|
||||
client = redis.NewClient(&redis.Options{
|
||||
Addr: ":6379",
|
||||
DialTimeout: 10 * time.Second,
|
||||
ReadTimeout: 30 * time.Second,
|
||||
WriteTimeout: 30 * time.Second,
|
||||
PoolSize: 10,
|
||||
PoolTimeout: 30 * time.Second,
|
||||
})
|
||||
client.FlushDb()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user