redis

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg *Config) *redis.Client

Types

type Config

type Config struct {
	ServiceName    string
	Host           string
	Port           int
	Auth           string
	DB             int
	ConnectTimeout int
	ReadTimeout    int
	WriteTimeout   int
	MaxActive      int
	MaxIdle        int
	IsLog          bool
	ExecTimeout    int64
}

Jump to

Keyboard shortcuts

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