Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectCounter = 0
Functions ¶
This section is empty.
Types ¶
type CommonPool ¶
type CommonPool struct {
// contains filtered or unexported fields
}
func NewCommonPool ¶
func NewCommonPool(addr string, maxActive int) *CommonPool
func (*CommonPool) Borrow ¶
func (p *CommonPool) Borrow() (c redis.Conn)
func (*CommonPool) Close ¶
func (p *CommonPool) Close()
func (*CommonPool) Return ¶
func (p *CommonPool) Return(c redis.Conn)
type RedigoPool ¶
type RedigoPool struct {
// contains filtered or unexported fields
}
func NewRedigoPool ¶
func NewRedigoPool(addr string, maxActive int) *RedigoPool
func (*RedigoPool) Borrow ¶
func (p *RedigoPool) Borrow() (c redis.Conn)
func (*RedigoPool) Close ¶
func (p *RedigoPool) Close()
func (*RedigoPool) Return ¶
func (p *RedigoPool) Return(c redis.Conn)
Click to show internal directories.
Click to hide internal directories.