@@ -195,6 +195,7 @@ type Cmdable interface {
195195 RPush (ctx context.Context , key string , values ... interface {}) * IntCmd
196196 RPushX (ctx context.Context , key string , values ... interface {}) * IntCmd
197197 LMove (ctx context.Context , source , destination , srcpos , destpos string ) * StringCmd
198+ BLMove (ctx context.Context , source , destination , srcpos , destpos string , timeout time.Duration ) * StringCmd
198199
199200 SAdd (ctx context.Context , key string , members ... interface {}) * IntCmd
200201 SCard (ctx context.Context , key string ) * IntCmd
@@ -1494,6 +1495,13 @@ func (c cmdable) LMove(ctx context.Context, source, destination, srcpos, destpos
14941495 return cmd
14951496}
14961497
1498+ func (c cmdable ) BLMove (ctx context.Context , source , destination , srcpos , destpos string , timeout time.Duration ) * StringCmd {
1499+ cmd := NewStringCmd (ctx , "blmove" , source , destination , srcpos , destpos , formatSec (ctx , timeout ))
1500+ cmd .setReadTimeout (timeout )
1501+ _ = c (ctx , cmd )
1502+ return cmd
1503+ }
1504+
14971505//------------------------------------------------------------------------------
14981506
14991507func (c cmdable ) SAdd (ctx context.Context , key string , members ... interface {}) * IntCmd {
0 commit comments