1
0
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:
Vladimir Mihailenco
2016-03-19 16:55:22 +02:00
parent ffbcf67964
commit 3e2da01875
2 changed files with 33 additions and 19 deletions

View File

@ -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()
}