code: def shutdown(host=None, port=None, db=None, password=None):
      '''
      Synchronously save the dataset to disk and then shut down the server
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.shutdown
      '''
      server = _connect(host, port, db, password)
      try:
          # Return false if unable to ping server
          server.ping()
      except redis.ConnectionError:
          return False
  
      server.shutdown()
      try:
          # This should fail now if the server is shutdown, which we want
          server.ping()
      except redis.ConnectionError:
          return True
      return Falsf shutdown(host=None, port=None, db=None, password=None):
      '''
      Synchronously save the dataset to disk and then shut down the server
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.shutdown
      '''
      server = _connect(host, port, db, password)
      try:
          # Return false if unable to ping server
          server.ping()
      except redis.ConnectionError:
          return False
  
      server.shutdown()
      try:
          # This should fail now if the server is shutdown, which we want
          server.ping()
      except redis.ConnectionError:
          return True
      return False
docs: Synchronously save the dataset to disk and then shut down the server
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.shutdown