X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a4460ef43f9625e6c09cdc327614d1b47c043489..4eddb121563a9e50cf2ee66e2a0ff7c186dd696a:/doc/SmoveCommand.html diff --git a/doc/SmoveCommand.html b/doc/SmoveCommand.html index 9c9c54e4..1bdb001f 100644 --- a/doc/SmoveCommand.html +++ b/doc/SmoveCommand.html @@ -16,7 +16,7 @@
-SmoveCommand: Contents
  SMOVE _srckey_ _dstkey_ _member_
    Return value
    See also +SmoveCommand: Contents
  SMOVE _srckey_ _dstkey_ _member_
    Return value

SmoveCommand

@@ -26,15 +26,15 @@
-

SMOVE _srckey_ _dstkey_ _member_

+ #sidebar SetCommandsSidebar

SMOVE _srckey_ _dstkey_ _member_

Time complexity O(1)
Move the specifided member from the set at srckey to the set at dstkey.This operation is atomic, in every given moment the element will appear tobe in the source or destination set for accessing clients.
-
If the source set does not exist or does not contain the specified elementno operation is performed and zero is returned, otherwise the element isremoved from the source set and added to the destination set. On successone is returned, even if the element was already present in the destionationset.
+
If the source set does not exist or does not contain the specified elementno operation is performed and zero is returned, otherwise the element isremoved from the source set and added to the destination set. On successone is returned, even if the element was already present in the destinationset.
An error is raised if the source or destination keys contain a non Set value.

Return value

Integer reply, specifically:

 1 if the element was moved
 0 if the element was not found on the first set and no operation was performed
-

See also

- + +