@@ -244,6 +244,7 @@ type Cmdable interface {
244
244
XTrimMinIDApprox (ctx context.Context , key string , minID string , limit int64 ) * IntCmd
245
245
XInfoGroups (ctx context.Context , key string ) * XInfoGroupsCmd
246
246
XInfoStream (ctx context.Context , key string ) * XInfoStreamCmd
247
+ XInfoStreamFull (ctx context.Context , key string , count int ) * XInfoStreamFullCmd
247
248
XInfoConsumers (ctx context.Context , key string , group string ) * XInfoConsumersCmd
248
249
249
250
BZPopMax (ctx context.Context , timeout time.Duration , keys ... string ) * ZWithKeyCmd
@@ -304,6 +305,8 @@ type Cmdable interface {
304
305
ClientList (ctx context.Context ) * StringCmd
305
306
ClientPause (ctx context.Context , dur time.Duration ) * BoolCmd
306
307
ClientID (ctx context.Context ) * IntCmd
308
+ ClientUnblock (ctx context.Context , id int64 ) * IntCmd
309
+ ClientUnblockWithError (ctx context.Context , id int64 ) * IntCmd
307
310
ConfigGet (ctx context.Context , parameter string ) * MapStringStringCmd
308
311
ConfigResetStat (ctx context.Context ) * StatusCmd
309
312
ConfigSet (ctx context.Context , parameter , value string ) * StatusCmd
@@ -320,6 +323,7 @@ type Cmdable interface {
320
323
ShutdownSave (ctx context.Context ) * StatusCmd
321
324
ShutdownNoSave (ctx context.Context ) * StatusCmd
322
325
SlaveOf (ctx context.Context , host , port string ) * StatusCmd
326
+ SlowLogGet (ctx context.Context , num int64 ) * SlowLogCmd
323
327
Time (ctx context.Context ) * TimeCmd
324
328
DebugObject (ctx context.Context , key string ) * StringCmd
325
329
ReadOnly (ctx context.Context ) * StatusCmd
@@ -364,6 +368,9 @@ type Cmdable interface {
364
368
GeoRadiusStore (ctx context.Context , key string , longitude , latitude float64 , query * GeoRadiusQuery ) * IntCmd
365
369
GeoRadiusByMember (ctx context.Context , key , member string , query * GeoRadiusQuery ) * GeoLocationCmd
366
370
GeoRadiusByMemberStore (ctx context.Context , key , member string , query * GeoRadiusQuery ) * IntCmd
371
+ GeoSearch (ctx context.Context , key string , q * GeoSearchQuery ) * StringSliceCmd
372
+ GeoSearchLocation (ctx context.Context , key string , q * GeoSearchLocationQuery ) * GeoSearchLocationCmd
373
+ GeoSearchStore (ctx context.Context , key , store string , q * GeoSearchStoreQuery ) * IntCmd
367
374
GeoDist (ctx context.Context , key string , member1 , member2 , unit string ) * FloatCmd
368
375
GeoHash (ctx context.Context , key string , members ... string ) * StringSliceCmd
369
376
}
@@ -3240,6 +3247,38 @@ func (c cmdable) GeoRadiusByMemberStore(
3240
3247
return cmd
3241
3248
}
3242
3249
3250
+ func (c cmdable ) GeoSearch (ctx context.Context , key string , q * GeoSearchQuery ) * StringSliceCmd {
3251
+ args := make ([]interface {}, 0 , 13 )
3252
+ args = append (args , "geosearch" , key )
3253
+ args = geoSearchArgs (q , args )
3254
+ cmd := NewStringSliceCmd (ctx , args ... )
3255
+ _ = c (ctx , cmd )
3256
+ return cmd
3257
+ }
3258
+
3259
+ func (c cmdable ) GeoSearchLocation (
3260
+ ctx context.Context , key string , q * GeoSearchLocationQuery ,
3261
+ ) * GeoSearchLocationCmd {
3262
+ args := make ([]interface {}, 0 , 16 )
3263
+ args = append (args , "geosearch" , key )
3264
+ args = geoSearchLocationArgs (q , args )
3265
+ cmd := NewGeoSearchLocationCmd (ctx , q , args ... )
3266
+ _ = c (ctx , cmd )
3267
+ return cmd
3268
+ }
3269
+
3270
+ func (c cmdable ) GeoSearchStore (ctx context.Context , key , store string , q * GeoSearchStoreQuery ) * IntCmd {
3271
+ args := make ([]interface {}, 0 , 15 )
3272
+ args = append (args , "geosearchstore" , store , key )
3273
+ args = geoSearchArgs (& q .GeoSearchQuery , args )
3274
+ if q .StoreDist {
3275
+ args = append (args , "storedist" )
3276
+ }
3277
+ cmd := NewIntCmd (ctx , args ... )
3278
+ _ = c (ctx , cmd )
3279
+ return cmd
3280
+ }
3281
+
3243
3282
func (c cmdable ) GeoDist (
3244
3283
ctx context.Context , key string , member1 , member2 , unit string ,
3245
3284
) * FloatCmd {
0 commit comments