Documentation ¶ Index ¶ type Redism func NewRedism(conf RedismConf) Redism type RedismConf Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Redism ¶ type Redism interface { Get(name, opt, key string) redis.Conn GetScript(key string) *redis.Script Close() error } Redism define the function supported func NewRedism ¶ func NewRedism(conf RedismConf) Redism NewRedism generate a redism client type RedismConf ¶ type RedismConf struct { Maxactive int Maxidle int Idletimeout int //storge the address in the array Masters map[string]([]string) Slaves map[string]([][]string) } RedismConf give out the configuration about redismconf Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.