Documentation ¶
Index ¶
- func GetBaseConfig(c framework.Container) *contract.RedisConfig
- func NewAnanRedis(params ...interface{}) (interface{}, error)
- func WithConfigPath(configPath string) contract.RedisOption
- func WithRedisConfig(f func(options *contract.RedisConfig)) contract.RedisOption
- type AnanRedis
- type RedisProvider
- func (a *RedisProvider) Boot(container framework.Container) error
- func (a *RedisProvider) IsDefer() bool
- func (a *RedisProvider) Name() string
- func (a *RedisProvider) Params(container framework.Container) []interface{}
- func (a *RedisProvider) Register(container framework.Container) framework.NewInstance
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 WithRedisConfig ¶
func WithRedisConfig(f func(options *contract.RedisConfig)) contract.RedisOption
Types ¶
type RedisProvider ¶
type RedisProvider struct { }
提供App的具体实现方法
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
Click to show internal directories.
Click to hide internal directories.