feat 排队

This commit is contained in:
2026-01-06 18:36:17 +08:00
parent 6523820cf6
commit 97c7813a24
9 changed files with 600 additions and 86 deletions

View File

@@ -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()
}