def setnx(self, name, value):
        "Set the value of key ``name`` to ``value`` if key doesn't exist"
        return self.execute_command('SETNX', name, value)
Set the value of key ``name`` to ``value`` if key doesn't exist
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py