@@ -201,6 +201,7 @@ type Cmdable interface {
201
201
SInter (ctx context.Context , keys ... string ) * StringSliceCmd
202
202
SInterStore (ctx context.Context , destination string , keys ... string ) * IntCmd
203
203
SIsMember (ctx context.Context , key string , member interface {}) * BoolCmd
204
+ SMIsMember (ctx context.Context , key string , members ... interface {}) * BoolSliceCmd
204
205
SMembers (ctx context.Context , key string ) * StringSliceCmd
205
206
SMembersMap (ctx context.Context , key string ) * StringStructMapCmd
206
207
SMove (ctx context.Context , source , destination string , member interface {}) * BoolCmd
@@ -1530,6 +1531,17 @@ func (c cmdable) SIsMember(ctx context.Context, key string, member interface{})
1530
1531
return cmd
1531
1532
}
1532
1533
1534
+ // Redis `SMISMEMBER key member [member ...]` command.
1535
+ func (c cmdable ) SMIsMember (ctx context.Context , key string , members ... interface {}) * BoolSliceCmd {
1536
+ args := make ([]interface {}, 2 , 2 + len (members ))
1537
+ args [0 ] = "smismember"
1538
+ args [1 ] = key
1539
+ args = appendArgs (args , members )
1540
+ cmd := NewBoolSliceCmd (ctx , args ... )
1541
+ _ = c (ctx , cmd )
1542
+ return cmd
1543
+ }
1544
+
1533
1545
// Redis `SMEMBERS key` command output as a slice.
1534
1546
func (c cmdable ) SMembers (ctx context.Context , key string ) * StringSliceCmd {
1535
1547
cmd := NewStringSliceCmd (ctx , "smembers" , key )
0 commit comments