Skip redis getConnection() if ConfigureRedisAction.NO_OP
Issue: gh-653
This commit is contained in:
committed by
Rob Winch
parent
af7a5a208f
commit
2aec28289e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user