SMISMEMBER

Checks several set members in one request.

Sets · Example verified

Syntax covered here

SMISMEMBER key member [member ...]

Presence and absence results follow the order of the requested members.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> SADD team a
1
# connection: default
> SMISMEMBER team a b
[1,0]