Mahn
Mahn

Reputation: 16585

Is MGET atomic?

If I fetch the value of multiple keys with MGET, is it guaranteed that nothing will be able to modify any of the keys requested while the command is being processed and until redis returns them? The documentation unfortunately says nothing about the atomicity of this command.

Upvotes: 6

Views: 728

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49962

Yes - MGET is atomic. All of Redis' commands are.

Upvotes: 11

Related Questions