nodes: 0, module; 1, function_definition; 2, function_name:zcard; 3, parameters; 4, block; 5, identifier:key; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, expression_statement; 11, expression_statement; 12, return_statement; 13, identifier:host; 14, None; 15, identifier:port; 16, None; 17, identifier:db; 18, None; 19, identifier:password; 20, None; 21, string; 22, assignment; 23, call; 24, string_content:Get the length of a sorted set in Redis
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.zcard foo_sorted; 25, identifier:server; 26, call; 27, attribute; 28, argument_list; 29, identifier:_connect; 30, argument_list; 31, identifier:server; 32, identifier:zcard; 33, identifier:key; 34, identifier:host; 35, identifier:port; 36, identifier:db; 37, identifier:password
code: def zcard(key, host=None, port=None, db=None, password=None):
      '''
      Get the length of a sorted set in Redis
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.zcard foo_sorted
      '''
      server = _connect(host, port, db, password)
      return server.zcard(key)