Skip to content
Permalink
Browse files
#1830: dbindex support in redis (#1831)
  • Loading branch information
beiwei30 committed May 23, 2018
1 parent a6d8f1c commit 300f9c9fe1e4de8f14b494d8bf835b4e1ac6d5d6
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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)));
}
}

0 comments on commit 300f9c9

Please sign in to comment.