redis

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfs map[string]ec.Redis, watcher *watcher.Watcher)

Types

type Redis

type Redis interface {
	// Get 获取指定名称的redis实例,如果实例不存在则会nil
	Get(name ...string) *redis.Client
}

func Instance

func Instance() Redis

Jump to

Keyboard shortcuts

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