@@ -6,7 +6,6 @@ type HashCmdable interface {
6
6
HDel (ctx context.Context , key string , fields ... string ) * IntCmd
7
7
HExists (ctx context.Context , key , field string ) * BoolCmd
8
8
HGet (ctx context.Context , key , field string ) * StringCmd
9
- HStrLen (ctx context.Context , key , field string ) * IntCmd
10
9
HGetAll (ctx context.Context , key string ) * MapStringStringCmd
11
10
HIncrBy (ctx context.Context , key , field string , incr int64 ) * IntCmd
12
11
HIncrByFloat (ctx context.Context , key , field string , incr float64 ) * FloatCmd
@@ -20,6 +19,7 @@ type HashCmdable interface {
20
19
HVals (ctx context.Context , key string ) * StringSliceCmd
21
20
HRandField (ctx context.Context , key string , count int ) * StringSliceCmd
22
21
HRandFieldWithValues (ctx context.Context , key string , count int ) * KeyValueSliceCmd
22
+ HStrLen (ctx context.Context , key , field string ) * IntCmd
23
23
}
24
24
25
25
func (c cmdable ) HDel (ctx context.Context , key string , fields ... string ) * IntCmd {
@@ -46,12 +46,6 @@ func (c cmdable) HGet(ctx context.Context, key, field string) *StringCmd {
46
46
return cmd
47
47
}
48
48
49
- func (c cmdable ) HStrLen (ctx context.Context , key , field string ) * IntCmd {
50
- cmd := NewIntCmd (ctx , "hstrlen" , key , field )
51
- _ = c (ctx , cmd )
52
- return cmd
53
- }
54
-
55
49
func (c cmdable ) HGetAll (ctx context.Context , key string ) * MapStringStringCmd {
56
50
cmd := NewMapStringStringCmd (ctx , "hgetall" , key )
57
51
_ = c (ctx , cmd )
@@ -179,3 +173,9 @@ func (c cmdable) HScan(ctx context.Context, key string, cursor uint64, match str
179
173
_ = c (ctx , cmd )
180
174
return cmd
181
175
}
176
+
177
+ func (c cmdable ) HStrLen (ctx context.Context , key , field string ) * IntCmd {
178
+ cmd := NewIntCmd (ctx , "hstrlen" , key , field )
179
+ _ = c (ctx , cmd )
180
+ return cmd
181
+ }
0 commit comments