redis

package module
v0.20.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPoolSize       = 5
	DefaultIdleTimeout    = 2 * time.Minute
	DefaultConnectTimeout = 5 * time.Second
	DefaultReadTimeout    = 5 * time.Second
	DefaultWriteTimeout   = 5 * time.Second
	DefaultDB             = 0
)

Functions

func Auth

func Auth(username, password string) broker.Option

func ConnectTimeout

func ConnectTimeout(d time.Duration) broker.Option

func DB

func DB(db int) broker.Option

func IdleTimeout

func IdleTimeout(d time.Duration) broker.Option

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

NewBroker returns a new broker implemented using the Redis pub/sub protocol. The connection address may be a fully qualified IANA address

func PoolSize

func PoolSize(n int) broker.Option

func ReadTimeout

func ReadTimeout(d time.Duration) broker.Option

func WriteTimeout

func WriteTimeout(d time.Duration) broker.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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