summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/sunionstore.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/sunionstore.md')
-rw-r--r--iredis/data/commands/sunionstore.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/iredis/data/commands/sunionstore.md b/iredis/data/commands/sunionstore.md
new file mode 100644
index 0000000..716caf1
--- /dev/null
+++ b/iredis/data/commands/sunionstore.md
@@ -0,0 +1,21 @@
+This command is equal to `SUNION`, but instead of returning the resulting set,
+it is stored in `destination`.
+
+If `destination` already exists, it is overwritten.
+
+@return
+
+@integer-reply: the number of elements in the resulting set.
+
+@examples
+
+```cli
+SADD key1 "a"
+SADD key1 "b"
+SADD key1 "c"
+SADD key2 "c"
+SADD key2 "d"
+SADD key2 "e"
+SUNIONSTORE key key1 key2
+SMEMBERS key
+```