Skip redis getConnection() if ConfigureRedisAction.NO_OP

Issue: gh-653
This commit is contained in:
Alex Panchenko
2016-10-30 10:54:36 +07:00
committed by Rob Winch
parent af7a5a208f
commit 2aec28289e

View File

@@ -230,6 +230,9 @@ public class RedisHttpSessionConfiguration extends SpringHttpSessionConfiguratio
}
public void afterPropertiesSet() throws Exception {
if (this.configure == ConfigureRedisAction.NO_OP) {
return;
}
RedisConnection connection = this.connectionFactory.getConnection();
this.configure.configure(connection);
}