redis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Nil = redis.Nil

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address  string        `required:"true"`
	Username string        `required:"true"`
	Password string        `required:"true"`
	DB       int           `required:"true"`
	Timeout  time.Duration `default:"5s" required:"false"`
	PoolSize int           `default:"10" required:"false"`
}

type Redis

type Redis struct {
	*redis.Client
}

func Open

func Open(config *Config) (*Redis, error)

Jump to

Keyboard shortcuts

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