@@ -200,6 +200,7 @@ type Cmdable interface {
200
200
SInter (ctx context.Context , keys ... string ) * StringSliceCmd
201
201
SInterStore (ctx context.Context , destination string , keys ... string ) * IntCmd
202
202
SIsMember (ctx context.Context , key string , member interface {}) * BoolCmd
203
+ SMIsMember (ctx context.Context , key string , members ... interface {}) * BoolSliceCmd
203
204
SMembers (ctx context.Context , key string ) * StringSliceCmd
204
205
SMembersMap (ctx context.Context , key string ) * StringStructMapCmd
205
206
SMove (ctx context.Context , source , destination string , member interface {}) * BoolCmd
@@ -1508,6 +1509,17 @@ func (c cmdable) SIsMember(ctx context.Context, key string, member interface{})
1508
1509
return cmd
1509
1510
}
1510
1511
1512
+ // Redis `SMISMEMBER key member [member ...]` command.
1513
+ func (c cmdable ) SMIsMember (ctx context.Context , key string , members ... interface {}) * BoolSliceCmd {
1514
+ args := make ([]interface {}, 2 , 2 + len (members ))
1515
+ args [0 ] = "smismember"
1516
+ args [1 ] = key
1517
+ args = appendArgs (args , members )
1518
+ cmd := NewBoolSliceCmd (ctx , args ... )
1519
+ _ = c (ctx , cmd )
1520
+ return cmd
1521
+ }
1522
+
1511
1523
// Redis `SMEMBERS key` command output as a slice.
1512
1524
func (c cmdable ) SMembers (ctx context.Context , key string ) * StringSliceCmd {
1513
1525
cmd := NewStringSliceCmd (ctx , "smembers" , key )
0 commit comments