From 1350d27e59a888ffd83d67ceb7e2ac9cdd4e6869 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 20 May 2009 11:09:09 +0200 Subject: [PATCH] SDIFF / SDIFFSTORE added to doc --- Changelog | 10 +++++++++ doc/CommandReference.html | 2 +- doc/Credits.html | 2 +- doc/SdiffCommand.html | 45 ++++++++++++++++++++++++++++++++++++++ doc/SdiffstoreCommand.html | 39 +++++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 doc/SdiffCommand.html create mode 100644 doc/SdiffstoreCommand.html diff --git a/Changelog b/Changelog index 3a8c398e9..08e26de87 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,13 @@ +2009-05-20 Aman Gupta changes merged +2009-05-20 Merge git://github.com/tmm1/redis +2009-05-19 Allow timeout=0 config to disable client timeouts +2009-05-19 Partial qsort implemented in SORT command, only when both BY and LIMIT is used. minor fix for a warning compiling under Linux. +2009-05-19 psort.c/h added. This is a partial qsort implementation that Redis will use when SORT+LIMIT is requested +2009-05-17 Fix SINTER/UNIONSTORE to allow for &=/|= style operations (i.e. SINTERSTORE set1 set1 set2) +2009-05-17 Optimize SDIFF to return as soon as the result set is empty +2009-05-17 SDIFF/SDIFFSTORE implemnted unifying it with the implementation of SUNION/SUNIONSTORE +2009-05-11 timestamp in log lines +2009-05-11 Python client updated pushing from Ludo's repository 2009-05-11 disconnect when we cannot read from the socket 2009-05-11 benchmark utility now supports random keys 2009-05-10 minor doc changes diff --git a/doc/CommandReference.html b/doc/CommandReference.html index 724be24a7..a83513c11 100644 --- a/doc/CommandReference.html +++ b/doc/CommandReference.html @@ -30,7 +30,7 @@

Commands operating on string values

Commands operating on the key space

Commands operating on lists

-

Commands operating on sets

+

Commands operating on sets

Multiple databases handling commands

Sorting

Persistence control commands

diff --git a/doc/Credits.html b/doc/Credits.html index 7504d5e30..e4e35fa43 100644 --- a/doc/Credits.html +++ b/doc/Credits.html @@ -26,7 +26,7 @@
-

Credits

+

Credits

p.s. sorry to take this file in sync is hard in this early days. Please drop me an email if I forgot to add your name here!
diff --git a/doc/SdiffCommand.html b/doc/SdiffCommand.html new file mode 100644 index 000000000..9aaa82209 --- /dev/null +++ b/doc/SdiffCommand.html @@ -0,0 +1,45 @@ + + + + + + + +
+ + + +
+
+ +SdiffCommand: Contents
  SDIFF _key1_ _key2_ ... _keyN_
    Return value
    See also +
+ +

SdiffCommand

+ +
+ +
+ +
+

SDIFF _key1_ _key2_ ... _keyN_

+Time complexity O(N) with N being the total number of elements of all the sets
Return the members of a set resulting from the difference between the firstset provided and all the successive sets. Example:
+
+key1 = x,a,b,c
+key2 = c
+key3 = a,d
+SDIFF key1,key2,key3 => x,b
+
Non existing keys are considered like empty sets.
+

Return value

Multi bulk reply, specifically the list of common elements.

See also

+ +
+ +
+
+ + + diff --git a/doc/SdiffstoreCommand.html b/doc/SdiffstoreCommand.html new file mode 100644 index 000000000..818c7fdeb --- /dev/null +++ b/doc/SdiffstoreCommand.html @@ -0,0 +1,39 @@ + + + + + + + +
+ + + +
+
+ +SdiffstoreCommand: Contents
  SDIFFSTORE _dstkey_ _key1_ _key2_ ... _keyN_
    Return value
    See also +
+ +

SdiffstoreCommand

+ +
+ +
+ +
+

SDIFFSTORE _dstkey_ _key1_ _key2_ ... _keyN_

+Time complexity O(N) where N is the total number of elements in all the provided sets
This commnad works exactly like SDIFF but instead of being returned the resulting set is sotred in dstkey.
+

Return value

Status code reply

See also

+ +
+ +
+
+ + +