Documentation ¶
Index ¶
- type TestRedisProvider
- func (t *TestRedisProvider) Close(ctx context.Context) (err error)
- func (t *TestRedisProvider) Init(a *app.App) (err error)
- func (t *TestRedisProvider) Name() (name string)
- func (t *TestRedisProvider) Redis() redis.UniversalClient
- func (t *TestRedisProvider) Run(ctx context.Context) (err error)
- func (t *TestRedisProvider) WithDb(db int) *TestRedisProvider
- func (t *TestRedisProvider) WithFLush(flushOnStart bool) *TestRedisProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestRedisProvider ¶
type TestRedisProvider struct {
// contains filtered or unexported fields
}
func NewTestRedisProvider ¶
func NewTestRedisProvider() *TestRedisProvider
func NewTestRedisProviderNum ¶ added in v0.5.1
func NewTestRedisProviderNum(num int) *TestRedisProvider
func (*TestRedisProvider) Close ¶
func (t *TestRedisProvider) Close(ctx context.Context) (err error)
func (*TestRedisProvider) Name ¶
func (t *TestRedisProvider) Name() (name string)
func (*TestRedisProvider) Redis ¶
func (t *TestRedisProvider) Redis() redis.UniversalClient
func (*TestRedisProvider) WithDb ¶
func (t *TestRedisProvider) WithDb(db int) *TestRedisProvider
func (*TestRedisProvider) WithFLush ¶
func (t *TestRedisProvider) WithFLush(flushOnStart bool) *TestRedisProvider
Click to show internal directories.
Click to hide internal directories.