Map<String, String> map = ResourceKit.readProperties(config);
Set<Entry<String, String>> entrySet = map.entrySet();
for (Entry<String, String> entry : entrySet) {
parseSetting(entry.getKey(), entry.getValue().trim());
}
JedisShardInfo shardInfo = new JedisShardInfo(host, port, timeout);
if (StrKit.notBlank(password)) {
shardInfo.setPassword(password);
}
JedisPoolConfig poolConfig = new JedisPoolConfig();
setPoolConfig(poolConfig);
pool = new JedisPool(poolConfig, shardInfo.getHost(), shardInfo.getPort(), shardInfo.getTimeout(),
shardInfo.getPassword());
JedisKit.init(pool);
return true;
}