boramalper/pydis

Is MSET atomic?

NoraCodes opened this issue · 2 comments

According to the Redis docs:

MSET is atomic, so all given keys are set at once. It is not possible for clients to see that some of the keys were updated while others are unchanged.

Is this true in Pydis?

Looks atomic to me. There are no async yields inside the mset() method (in fact, it's not even a coroutine, so it's impossible to yield).

I think it's atomic, for the same reason @mikenerone mentioned. =)