Documentation ¶
Index ¶
- Constants
- type RedisProvider
- func (*RedisProvider) AfterInit(instance any) error
- func (*RedisProvider) BeforeInit(c core.Container) error
- func (*RedisProvider) InitOnBind() bool
- func (self *RedisProvider) Name() string
- func (*RedisProvider) Params(c core.Container) []interface{}
- func (*RedisProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
- type RedisService
- type Service
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
Click to show internal directories.
Click to hide internal directories.