ConnectionSpec connectionSpec = DefaultConnectionSpec.newSpec(address, port, database, password.getBytes());
// finally - use it to create the JRedisClient instance
//
JRedisClient jredis = new JRedisClient(connectionSpec);
jredis.ping();
Log.log("Sweet success -- we're connected using default specs and various server info settings.");
}
catch (RedisException e) {
Log.error("Failed to connect to Redis using JRedisClient default ConnectionSpec -- password perhaps? => " + e.getLocalizedMessage());
}