redis_config.go 396 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package entity

import (
	"strings"
)

func (c CLusterRedis) GetMode() string {
	return c.Mode
}

func (c CLusterRedis) GetAddrs() []string {
	return strings.Split(c.Addrs, ",")
}

func (c CLusterRedis) GetMasters() []string {
	return strings.Split(c.Masters, ",")
}

func (c CLusterRedis) GetDbIndex() int {
	return c.DbIndex
}

func (c CLusterRedis) GetPassword() string {
	return c.Password
}