JedisConnectionFactory setHostName is deprecated : <p>This will be my first time connecting Spring to Redis. The documentation for jedis connection factory: <a href="http://www.baeldung.com/spring-data-redis-tutorial" rel="noreferrer">http://www.baeldung.com/spring-data-redis-tutorial</a> </p>

<p>Offers the following code:</p>

<pre><code>@Bean
JedisConnectionFactory jedisConnectionFactory() {
    JedisConnectionFactory jedisConFactory
            = new JedisConnectionFactory();

    jedisConFactory.setHostName("localhost");
    jedisConFactory.setPort(6379);
    return jedisConFactory;
}
</code></pre>

<p>Looks great, but my IDE is telling me that the setHostName and setPort methods have been deprecated (even though I'm using the versions from the tutorial).</p>

<p>I was wondering if anyone had a simple "get spring data connected to redis" example that uses the non-deprecated API calls?</p>
