瀏覽代碼

refactor(cli): enable lazy connect for redis connexion

Nicolas Meienberger 1 年之前
父節點
當前提交
1fb8b6409a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/cli/src/executors/system/system.executors.ts

+ 1 - 1
packages/cli/src/executors/system/system.executors.ts

@@ -297,7 +297,7 @@ export class SystemExecutors {
 
       // Flush redis cache
       this.logger.info('Flushing redis cache...');
-      const cache = new Redis({ host: '127.0.0.1', port: 6379, password: envMap.get('REDIS_PASSWORD') });
+      const cache = new Redis({ host: '127.0.0.1', port: 6379, password: envMap.get('REDIS_PASSWORD'), lazyConnect: true });
       await cache.connect();
       await cache.flushdb();
       await cache.quit();