code: def _call_setnx(self, command, value):
          
          result = self._traverse_command(command, value)
          if self.indexable and value is not None and result:
              self.index(value)
          return result
docs: Index only if value has been set.