redisservice

package
v0.0.0-...-a902961 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Do   requestType = iota
	Send requestType = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(ctx context.Context, cmd string, args ...interface{}) (interface{}, error)
	Send(ctx context.Context, cmd string, args ...interface{}) error
	io.Closer
}

type ClientRequest

type ClientRequest struct {
	Command  string
	Args     []interface{}
	Response interface{}
	// contains filtered or unexported fields
}

func GetClientRequest

func GetClientRequest(ctx context.Context) *ClientRequest

type Pool

type Pool struct {
	Filter saola.Filter

	Dial func() (redis.Conn, error)

	TestOnBorrow func(redis.Conn, time.Time) error

	MaxIdle   int
	MaxActive int

	IdleTimeout time.Duration
	// contains filtered or unexported fields
}

func (*Pool) Close

func (p *Pool) Close() error

func (*Pool) Get

func (p *Pool) Get() Client

Jump to

Keyboard shortcuts

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