Documentation ¶ Index ¶ func RegisterRedis(name, address, password string, database int) type Redis func GetRedis(name string) (*Redis, error) func (r *Redis) GetClient() *redis.Client func (r *Redis) Init() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RegisterRedis ¶ func RegisterRedis(name, address, password string, database int) Types ¶ type Redis ¶ type Redis struct { Address string Password string DbNum int // contains filtered or unexported fields } func GetRedis ¶ func GetRedis(name string) (*Redis, error) func (*Redis) GetClient ¶ func (r *Redis) GetClient() *redis.Client func (*Redis) Init ¶ func (r *Redis) Init() error Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.