Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig(container goframe.IContainer) *contract.RedisConfig
func NewRedisService ¶
func WithConfigPath ¶
func WithConfigPath(path string) contract.RedisOption
func WithRedisConfig ¶
func WithRedisConfig(fn func(options *contract.RedisConfig)) contract.RedisOption
Types ¶
type RedisProvider ¶
type RedisProvider struct{}
func (*RedisProvider) Boot ¶
func (p *RedisProvider) Boot(container goframe.IContainer) error
func (*RedisProvider) Inject ¶
func (p *RedisProvider) Inject(container goframe.IContainer) goframe.Handler
func (*RedisProvider) IsDefer ¶
func (p *RedisProvider) IsDefer() bool
func (*RedisProvider) Name ¶
func (p *RedisProvider) Name() string
func (*RedisProvider) Params ¶
func (p *RedisProvider) Params(container goframe.IContainer) []any
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
func (*RedisService) GetClient ¶
func (s *RedisService) GetClient(option ...contract.RedisOption) (*redis.Client, error)
Click to show internal directories.
Click to hide internal directories.