code: def zrange(key, start, stop, host=None, port=None, db=None, password=None):
      '''
      Get a range of values from a sorted set in Redis by index
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.zrange foo_sorted 0 10
      '''
      server = _connect(host, port, db, password)
      return server.zrange(key, start, stopf zrange(key, start, stop, host=None, port=None, db=None, password=None):
      '''
      Get a range of values from a sorted set in Redis by index
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.zrange foo_sorted 0 10
      '''
      server = _connect(host, port, db, password)
      return server.zrange(key, start, stop)
docs: Get a range of values from a sorted set in Redis by index
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.zrange foo_sorted 0 10