X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efc3408748061a08ec5ff18e392c30f31f5094a2..06e09c9b586d0e2c5d91dc596f871be56c6e0971:/doc/NonexistentCommands.html diff --git a/doc/NonexistentCommands.html b/doc/NonexistentCommands.html deleted file mode 100644 index 47797a00..00000000 --- a/doc/NonexistentCommands.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - -
- - - -
-
- -NonexistentCommands: Contents
  HGETSET
  SET with expire
  ZADDNX -
- -

NonexistentCommands

- -
- A list of commands that don't exist in Redis, but can be accomplished in a different way. -
- -
- -This is a list of commands that don't exist in Redis, but can be accomplished in a different way, usually by means of WATCH/MULTI/EXEC.

For better performance, you can pipeline multiple commands.

HGETSET

GETSET for Hashes.

-WATCH foo
-old_value = HGET foo field
-MULTI
-HSET foo field new_value
-EXEC
-

SET with expire

See SETEX.

ZADDNX

Add an element to a sorted set, only if the element doesn't already exist (by default, ZADD would update the element's score if it already exists). See thread.

-WATCH foo
-score = ZSCORE foo bar
-IF score != NIL
-  MULTI
-  ZADD foo 1 bar
-  EXEC
-ENDIF
-
-
- -
-
- - -