Documentation ¶
Index ¶
- Constants
- type Client
- type RedisService
- type ReidsProvider
- func (*ReidsProvider) AfterInit(instance any) error
- func (*ReidsProvider) BeforeInit(c core.Container) error
- func (*ReidsProvider) InitOnBoot() bool
- func (self *ReidsProvider) Name() string
- func (*ReidsProvider) Params(c core.Container) []interface{}
- func (*ReidsProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
- type Service
- type SourceSetter
Constants ¶
View Source
const Name = "redis"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisService ¶
type RedisService struct { Service // contains filtered or unexported fields }
func Instance ¶
func Instance() *RedisService
func (*RedisService) Conn ¶
func (self *RedisService) Conn(connName ...string) *redis.Client
func (*RedisService) Pipeline ¶
func (self *RedisService) Pipeline(key string, write ...bool) *pipeline
type ReidsProvider ¶
type ReidsProvider struct {
core.ServiceProvider
}
func (*ReidsProvider) AfterInit ¶
func (*ReidsProvider) AfterInit(instance any) error
func (*ReidsProvider) BeforeInit ¶
func (*ReidsProvider) BeforeInit(c core.Container) error
func (*ReidsProvider) InitOnBoot ¶
func (*ReidsProvider) InitOnBoot() bool
func (*ReidsProvider) Name ¶
func (self *ReidsProvider) Name() string
func (*ReidsProvider) Params ¶
func (*ReidsProvider) Params(c core.Container) []interface{}
func (*ReidsProvider) RegisterProviderInstance ¶
func (*ReidsProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
type SourceSetter ¶
type SourceSetter func() (cache string)
Click to show internal directories.
Click to hide internal directories.