I've got a huge list of keys and one value (the same for all keys) that should be written to a redis instance. This should only be happen, if an entry with this key already exists.
There is the MSETNX command which is doing the opposite: putting in the entry, when the key does NOT exist.
Sure, i can just check before via EXIST and set it depending on the result, but how do i ensure that this atomic. And as this list can be really huge, how do i do this the pipeline-based?
i'am using redis-py as wrapper and there's no Lua-Scripting support available on the server.