Documentation
¶
Index ¶
- Variables
- func Connect(cfg *Config, force ...bool) error
- func FlagSet(name string) *pflag.FlagSet
- func Init(cfg *Config, force ...bool) error
- func NoiseCheck(ctx context.Context, key string, count int64, expire time.Duration) (bool, int64)
- func NoiseGet(ctx context.Context, key string) int64
- func NoiseSet(ctx context.Context, key string, expire time.Duration) int64
- func R() *redis.Client
- type Config
- type DebugHook
- type Task
- func (t *Task) Add(ctx context.Context, prefix, key string, executeAt int64) error
- func (t *Task) List(ctx context.Context) (TaskItems, error)
- func (t *Task) Process(ctx context.Context, f func(string) error)
- func (t *Task) Remove(ctx context.Context, key string) error
- func (t *Task) Start(ctx context.Context, f func(string) error)
- type TaskItem
- type TaskItems
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Nil = redis.Nil
)
Functions ¶
func NoiseCheck ¶
Types ¶
type DebugHook ¶
type DebugHook struct{}
func (DebugHook) DialHook ¶
func (DebugHook) DialHook(next redis.DialHook) redis.DialHook
当创建网络连接时调用
func (DebugHook) ProcessHook ¶
func (DebugHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook
执行命令时调用
func (DebugHook) ProcessPipelineHook ¶
func (DebugHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook
执行管道命令时调用
Click to show internal directories.
Click to hide internal directories.