nodes: 0, module; 1, function_definition; 2, function_name:_get_key_value; 3, parameters; 4, block; 5, identifier:self; 6, identifier:key; 7, default_parameter; 8, expression_statement; 9, if_statement; 10, identifier:is_hll; 11, False; 12, string; 13, identifier:is_hll; 14, comment:# get hll value; 15, block; 16, else_clause; 17, string_content:Returns the proper key value for the stats
  
          @param key: the redis key
          @param is_hll: the key is a HyperLogLog, else is a sorted set; 18, return_statement; 19, comment:# get zcard value; 20, block; 21, call; 22, return_statement; 23, attribute; 24, argument_list; 25, call; 26, attribute; 27, identifier:execute_command; 28, string:"PFCOUNT"; 29, identifier:key; 30, attribute; 31, argument_list; 32, identifier:self; 33, identifier:redis_conn; 34, attribute; 35, identifier:zcard; 36, identifier:key; 37, identifier:self; 38, identifier:redis_conn
code: def _get_key_value(self, key, is_hll=False):
          '''
          Returns the proper key value for the stats
  
          @param key: the redis key
          @param is_hll: the key is a HyperLogLog, else is a sorted set
          '''
          if is_hll:
              # get hll value
              return self.redis_conn.execute_command("PFCOUNT", key)
          else:
              # get zcard value
              return self.redis_conn.zcard(key)