predis

package module
v0.0.0-...-bd75b91 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

func WithAuth

func WithAuth(auth string) Option

func WithConnection

func WithConnection(host string, port int) Option

func WithDB

func WithDB(db int) Option

func WithDialTimeout

func WithDialTimeout(timeout time.Duration) Option

func WithLimit

func WithLimit(minIdle, maxIdle int) Option

func WithReadTimeout

func WithReadTimeout(timeout time.Duration) Option

func WithWriteTimeout

func WithWriteTimeout(timeout time.Duration) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Service

func (*Service) GetConn

func (r *Service) GetConn() *redis.Client

func (*Service) Run

func (r *Service) Run() error

Jump to

Keyboard shortcuts

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