X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/163f4b8cb25ca46c1482bb6b4ca9c4c9d0f15dd4..12ebe2ac17a26ecf263f90b2acdf03db29b00223:/doc/SetexCommand.html diff --git a/doc/SetexCommand.html b/doc/SetexCommand.html new file mode 100644 index 00000000..7c766d85 --- /dev/null +++ b/doc/SetexCommand.html @@ -0,0 +1,42 @@ + + + + + + + +
+ + + +
+
+ +SetexCommand: Contents
  SETEX _key_ _time_ _value_
    Return value +
+ +

SetexCommand

+ +
+ +
+ +
+ #sidebar StringCommandsSidebar

SETEX _key_ _time_ _value_

+Time complexity: O(1)
The command is exactly equivalent to the following group of commands:
+SET _key_ _value_
+EXPIRE _key_ _time_
+
+
The operation is atomic. An atomic SET+EXPIRE operation was already providedusing MULTI/EXEC, but SETEX is a faster alternative providedbecause this operation is very common when Redis is used as a Cache.
+

Return value

Status code reply +
+ +
+
+ + +