List<String> parseRedisAddress(String address,int defaultPort){
  List<String> list=new ArrayList<>();
  String[] array=address.split(",");
  for (  String s : array) {
    if (!s.contains(":"))     s=s + ":" + defaultPort;
    list.add(s);
  }
  return list;
}

List < String > parseRedisAddress ( String address , int defaultPort ) { List < String > list = new ArrayList < > ( ) ; String [ ] array = address . split ( "," ) ; for ( String s : array ) { if ( ! s . contains ( ":" ) ) s = s + ":" + defaultPort ; list . add ( s ) ; } return list ; }
parse address string to a list of host : port string
