feat 排队
This commit is contained in:
@@ -49,7 +49,22 @@ func (c *Client) Set(ctx context.Context, key string, value interface{}, expirat
|
||||
return c.cli.Set(ctx, key, value, expiration)
|
||||
}
|
||||
|
||||
// Get 获取数据
|
||||
func (c *Client) HSet(ctx context.Context, key string, values ...interface{}) *redis.IntCmd {
|
||||
return c.cli.HSet(ctx, key, values)
|
||||
}
|
||||
|
||||
func (c *Client) Get(ctx context.Context, key string) *redis.StringCmd {
|
||||
return c.cli.Get(ctx, key)
|
||||
}
|
||||
|
||||
func (c *Client) HGet(ctx context.Context, key, field string) *redis.StringCmd {
|
||||
return c.cli.HGet(ctx, key, field)
|
||||
}
|
||||
|
||||
func (c *Client) HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd {
|
||||
return c.cli.HGetAll(ctx, key)
|
||||
}
|
||||
|
||||
func (c *Client) Pipeline() redis.Pipeliner {
|
||||
return c.cli.Pipeline()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user