redis

package
v1.0.402 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRedis

func LoadRedis(tag string, lo logger.Logger, config database.RedisProviderConfig) database.Redis

Types

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func (*Redis) GetClient added in v1.0.401

func (c *Redis) GetClient() (client radix.Client)

func (*Redis) GetConfig added in v1.0.401

func (c *Redis) GetConfig() database.RedisProviderConfig

func (*Redis) Init

func (c *Redis) Init() (err error)

func (*Redis) OnInitError

func (c *Redis) OnInitError(e error) (err error)

type Stores

type Stores struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Stores

func (*Stores) LoadClient

func (c *Stores) LoadClient(id string) (client *Redis, ok bool)

func (*Stores) LoadClientByTag

func (c *Stores) LoadClientByTag(ta string) (client *Redis, ok bool)

func (*Stores) StoreClient

func (c *Stores) StoreClient(client *Redis)

Jump to

Keyboard shortcuts

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