@@ -200,6 +200,7 @@ type Cmdable interface {
200200 SInter (ctx context.Context , keys ... string ) * StringSliceCmd
201201 SInterStore (ctx context.Context , destination string , keys ... string ) * IntCmd
202202 SIsMember (ctx context.Context , key string , member interface {}) * BoolCmd
203+ SMIsMember (ctx context.Context , key string , members ... interface {}) * BoolSliceCmd
203204 SMembers (ctx context.Context , key string ) * StringSliceCmd
204205 SMembersMap (ctx context.Context , key string ) * StringStructMapCmd
205206 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{})
15081509 return cmd
15091510}
15101511
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+
15111523// Redis `SMEMBERS key` command output as a slice.
15121524func (c cmdable ) SMembers (ctx context.Context , key string ) * StringSliceCmd {
15131525 cmd := NewStringSliceCmd (ctx , "smembers" , key )
0 commit comments