Lazily instantiate shared Lettuce connection
Allow app context to start if Redis is down DATAREDIS-209
This commit is contained in:
@@ -95,10 +95,6 @@ public class LettuceConnectionFactory implements InitializingBean, DisposableBea
|
||||
|
||||
public void afterPropertiesSet() {
|
||||
this.client = createRedisClient();
|
||||
resetConnection();
|
||||
if (shareNativeConnection) {
|
||||
initConnection();
|
||||
}
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
|
||||
Reference in New Issue
Block a user