redis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Zlib Imports: 9 Imported by: 0

Documentation

Overview

*

  • @author huqiuyun
  • 直连redis数据服务

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(name string) (*redis.Client, error)
	Close(name string) error
	CloseAll()
}

func NewRedis

func NewRedis(conf []server.Redis) (Client, error)

type Connector

type Connector struct {
	ClientMap map[string]*_client
}

func (*Connector) Close

func (c *Connector) Close(name string) error

func (*Connector) CloseAll

func (c *Connector) CloseAll()

func (*Connector) Get

func (c *Connector) Get(name string) (*redis.Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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