Skip to content

Commit

Permalink
#1830: dbindex support in redis (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
beiwei30 authored May 23, 2018
1 parent a6d8f1c commit 300f9c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ public RedisRegistry(URL url) {
}
if (StringUtils.isEmpty(password)) {
this.jedisPools.put(address, new JedisPool(config, host, port,
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT)));
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), null,
url.getParameter("db.index", 0)));
} else {
this.jedisPools.put(address, new JedisPool(config, host, port,
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), password));
url.getParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), password,
url.getParameter("db.index", 0)));
}
}

Expand Down

0 comments on commit 300f9c9

Please sign in to comment.