redis

package
v0.0.0-...-f5cdc36 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(cfg Config) *redis.Client

Returns new redis client

Types

type Config

type Config struct {
	Addr            string
	RedisPassword   string
	Database        string
	DefaultDatabase string
	Password        string
	MinIdleConn     int
	PoolSize        int
	PoolTimeout     int
	DB              int
}

Redis config

Jump to

Keyboard shortcuts

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