redis

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxIdle     = 1024
	IdleTimeout = 3 * time.Minute
)

Variables

This section is empty.

Functions

func New

func New(c *Config) *redigo.Pool

New creates a new redis pool

Types

type Config

type Config struct {
	// Addr is the name of redis address
	Addr string
	// Timeout is the name of the timeout for the cluster
	Timeout time.Duration
	// Password is the password for the cluster
	Password string
	// DB is the name of the database
	DB int
}

Config is the configuration for the redis clusters

Jump to

Keyboard shortcuts

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