code: def set_key(key, value, host=None, port=None, db=None, password=None):
      '''
      Set redis key value
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.set_key foo bar
      '''
      server = _connect(host, port, db, password)
      return server.set(key, valuef set_key(key, value, host=None, port=None, db=None, password=None):
      '''
      Set redis key value
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.set_key foo bar
      '''
      server = _connect(host, port, db, password)
      return server.set(key, value)
docs: Set redis key value
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.set_key foo bar