Documentation ¶
Overview ¶
Package redis 封装第三方库redigo
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewClient = func(addr *util.DBAddress) Client { c := &redisCli{ target: addr.Conn.DSN, password: addr.Conn.Password, readTimeout: time.Duration(addr.ReadTimeout) * time.Millisecond, writeTimeout: time.Duration(addr.WriteTimeout) * time.Millisecond, } c.pool = getPool(addr.Conn.DSN, addr.Conn.Password) return c }
NewClient 新建一个redis后端请求代理
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.