redisdb

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRedis

func RegisterRedis(name, address, password string, database int)

Types

type Redis

type Redis struct {
	Address  string
	Password string
	DbNum    int
	// contains filtered or unexported fields
}

func GetRedis

func GetRedis(name string) (*Redis, error)

func (*Redis) GetClient

func (r *Redis) GetClient() *redis.Client

func (*Redis) Init

func (r *Redis) Init() error

Jump to

Keyboard shortcuts

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