redisdb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 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