redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConfig

func GetBaseConfig(c framework.Container) *contract.RedisConfig

func NewAnanRedis

func NewAnanRedis(params ...interface{}) (interface{}, error)

func WithConfigPath

func WithConfigPath(configPath string) contract.RedisOption

通过配置文件目录加载配置文件

func WithRedisConfig

func WithRedisConfig(f func(options *contract.RedisConfig)) contract.RedisOption

Types

type AnanRedis

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

func (*AnanRedis) GetClient

func (ar *AnanRedis) GetClient(options ...contract.RedisOption) (*redis.Client, error)

type RedisProvider

type RedisProvider struct {
}

提供App的具体实现方法

func (*RedisProvider) Boot

func (a *RedisProvider) Boot(container framework.Container) error

func (*RedisProvider) IsDefer

func (a *RedisProvider) IsDefer() bool

func (*RedisProvider) Name

func (a *RedisProvider) Name() string

func (*RedisProvider) Params

func (a *RedisProvider) Params(container framework.Container) []interface{}

func (*RedisProvider) Register

func (a *RedisProvider) Register(container framework.Container) framework.NewInstance

Jump to

Keyboard shortcuts

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