X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ed9b544e10b84cd43348ddfab7068b610a5df1f7..144b0094c31b0a3604e5bd2686a7df15c0fd324d:/doc/MsetCommand.html diff --git a/doc/MsetCommand.html b/doc/MsetCommand.html new file mode 100644 index 00000000..2b6bff0f --- /dev/null +++ b/doc/MsetCommand.html @@ -0,0 +1,44 @@ + + + +
+ + + +Set the the respective keys to the respective values. MSET will replace oldvalues with new values, while MSETNX will not perform any operation at alleven if just a single key already exists.+
Because of this semantic MSETNX can be used in order to set different keysrepresenting different fields of an unique logic object in a way thatensures that either all the fields or none at all are set.+
Both MSET and MSETNX are atomic operations. This means that for instanceif the keys A and B are modified, another client talking to Redis can eithersee the changes to both A and B at once, or no modification at all.+
+1 if the all the keys were set +0 if no key was set (at least one key already existed) ++