redis

package
v0.0.0-...-5411de8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 6 Imported by: 0

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 ConnPool

type ConnPool interface {
	Borrow() redis.Conn
	Return(conn redis.Conn)
	Close()
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL