/** * Creates a new {@link RedisServer} from the given properties. * * @param properties * @return */ public static RedisServer newServerFrom(Properties properties) { String host = properties.getProperty(INFO.HOST.key, "127.0.0.1"); int port = Integer.parseInt(properties.getProperty(INFO.PORT.key, "26379")); return new RedisServer(host, port, properties); }
/** * Creates a new {@link RedisServer} from the given properties. * * @param properties * @return */ public static RedisServer newServerFrom(Properties properties) { String host = properties.getProperty(INFO.HOST.key, "127.0.0.1"); int port = Integer.parseInt(properties.getProperty(INFO.PORT.key, "26379")); return new RedisServer(host, port, properties); }
/** * Creates a new {@link RedisServer} from the given properties. * * @param properties * @return */ public static RedisServer newServerFrom(Properties properties) { String host = properties.getProperty(INFO.HOST.key, "127.0.0.1"); int port = Integer.parseInt(properties.getProperty(INFO.PORT.key, "26379")); return new RedisServer(host, port, properties); }