@@ -116,16 +116,16 @@ func (c cmdable) HMGet(ctx context.Context, key string, fields ...string) *Slice
116
116
117
117
// HSet accepts values in following formats:
118
118
//
119
- // - HSet("myhash", "key1", "value1", "key2", "value2")
119
+ // - HSet(ctx, "myhash", "key1", "value1", "key2", "value2")
120
120
//
121
- // - HSet("myhash", []string{"key1", "value1", "key2", "value2"})
121
+ // - HSet(ctx, "myhash", []string{"key1", "value1", "key2", "value2"})
122
122
//
123
- // - HSet("myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
123
+ // - HSet(ctx, "myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
124
124
//
125
125
// Playing struct With "redis" tag.
126
126
// type MyHash struct { Key1 string `redis:"key1"`; Key2 int `redis:"key2"` }
127
127
//
128
- // - HSet("myhash", MyHash{"value1", "value2"}) Warn: redis-server >= 4.0
128
+ // - HSet(ctx, "myhash", MyHash{"value1", "value2"}) Warn: redis-server >= 4.0
129
129
//
130
130
// For struct, can be a structure pointer type, we only parse the field whose tag is redis.
131
131
// if you don't want the field to be read, you can use the `redis:"-"` flag to ignore it,
0 commit comments