func (g *GoRedis) DBSize() (int64, error) {
	return g.client.DBSize().Result()
}
DBSize return DBsize of all master nodes.
package e2e
import (
	"github.com/go-redis/redis"
	uuid "github.com/satori/go.uuid"
	"golang.org/x/sync/errgroup"
	"time"
)
const defaultTimeOut = time.Second * 2
type GoRedis struct {
	client   *redis.ClusterClient
	password string
}
func NewGoRedis(addr, password string) *GoRedis {
	return &GoRedis{
		client: redis.NewClusterClient(&redis.ClusterOptions{
			Addrs:    []string{addr},
			Password: password,
		}),
		password: password,
	}
}
func (g *GoRedis) StuffingData(round, n int) error {
	var group errgroup.Group
	for i := 0; i < round; i++ {
		group.Go(func() error {
			for j := 0; j < n; j++ {
				key := uuid.NewV4().String()
				if err := g.client.Set(key, key, 0).Err(); err != nil {
					return err
				}
			}
			return nil
		})
	}
	if err := group.Wait(); err != nil {
		return err
	}
	return nil
}