code: def setAll(self, pairs):
          
          for (k, v) in pairs:
              self.set(k, v)
          return self
docs: Set multiple parameters, passed as a list of key-value pairs.
  
          :param pairs: list of key-value pairs to set