redis

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "redis"

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisProvider

type RedisProvider struct {
	core.ServiceProvider
}

func (*RedisProvider) AfterInit

func (*RedisProvider) AfterInit(instance any) error

func (*RedisProvider) BeforeInit

func (*RedisProvider) BeforeInit(c core.Container) error

func (*RedisProvider) InitOnBind

func (*RedisProvider) InitOnBind() bool

func (*RedisProvider) Name

func (self *RedisProvider) Name() string

func (*RedisProvider) Params

func (*RedisProvider) Params(c core.Container) []interface{}

func (*RedisProvider) RegisterProviderInstance

func (*RedisProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc

type RedisService

type RedisService struct {
	Service
	// contains filtered or unexported fields
}

func (*RedisService) GetConnPool

func (self *RedisService) GetConnPool(connName ...string) *redis.Client

type Service

type Service interface {
	GetConnPool(connName ...string) *redis.Client
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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