Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateDelayDoubleDelTask(ctx context.Context, key, delKey string)
- func (c *Client) DLock(ctx context.Context, key string, expire time.Duration, f func())
- func (c *Client) DelIfEquals(ctx context.Context, key string, value interface{})
- func (c *Client) DoDelayDoubleDelTask(ctx context.Context, key string)
- func (c *Client) ReadDataFromQueue(ctx context.Context, f func(queue, msg string), keys ...string)
- func (c *Client) ReadDelayQueue(ctx context.Context, key string, handleMsg func(data *TaskItem))
- func (c *Client) WriteDelayQueue(ctx context.Context, key string, dealTime int64, data interface{})
- type TaskItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
redis.UniversalClient
}
func (*Client) CreateDelayDoubleDelTask ¶ added in v0.1.3
CreateDelayDoubleDelTask 创建延时删除任务,延时3-5s双删
func (*Client) DelIfEquals ¶
DelIfEquals 删除key,value都相等的key
func (*Client) DoDelayDoubleDelTask ¶ added in v0.1.3
DelayDoubleDel 执行延时任务延时3-5s双删
func (*Client) ReadDataFromQueue ¶ added in v0.1.3
ReadDataFromQueue 阻塞读
func (*Client) ReadDelayQueue ¶ added in v0.1.3
ReadDelayQueue 读延时队列
Click to show internal directories.
Click to hide internal directories.