redis

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumerConn added in v0.0.7

func NewConsumerConn(key string, config contract.Config) (contract.Consumer, error)

NewConsumerConn new consumer connection

func NewProducerConn added in v0.0.7

func NewProducerConn(config contract.Config) (contract.Producer, error)

NewProducerConn redis producer connection

Types

type Config

type Config struct {
	Addr     string
	Username string
	Password string
	DB       int
	Pool     *contract.Pool
}

func (*Config) PoolConfig added in v0.0.7

func (config *Config) PoolConfig() contract.Pool

func (*Config) String

func (config *Config) String() string

Jump to

Keyboard shortcuts

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