rdb

package
v0.0.0-...-2ebd195 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRdbClient

func GetRdbClient(name string) *redis.Client

func NewClient

func NewClient(opts *RdbOption) (*redis.Client, error)

Types

type RdbOption

type RdbOption struct {
	Name         string
	Password     string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	PoolSize     int
	MinIdleConns int
	DialTimeout  time.Duration
	IdleTimeout  time.Duration
	Addr         string
	Db           int
}

Jump to

Keyboard shortcuts

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