Optional
blockingOptional
dataUsed for "database" commands to enforce type checking.
Private
loggerOptional
maxMaximum number of parameters allowed. -1 for no maximum.
Optional
minMinimum number of parameters require.
Optional
nameOptional
pubUsed when PUB/SUB is in effect.
Optional
signSign is used in commands with a compliment command. The only current example is INCR/DECR. Sign is 1 for INCR and -1 for DECR
Optional
txUsed in transactions to enqueue a command.
Every command must implement the execute method.
Private
intersectionPrivate
sinterPrivate
sinterstore
Available since 1.0.0.
SINTER key [key ...]
Returns the members of the set resulting from the intersection of all the given sets.
SINTERSTORE destination key [key...]
This command is equal to SINTER, but instead of returning the resulting set, it is stored in destination.
If destination already exists, it is overwritten
For example:
Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty (since set intersection with an empty set always results in an empty set).
Return value
Array reply: list with members of the resulting set.
Examples