@quillsql/node 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,9 @@ class CachedConnection {
66
66
  getCache({ username, password, host, port, cacheType, }) {
67
67
  if (cacheType === "redis" || cacheType === "rediss") {
68
68
  const redisURL = `${cacheType}://${username}:${password}@${host}:${port}`;
69
- return (0, redis_1.createClient)({ url: redisURL });
69
+ const client = (0, redis_1.createClient)({ url: redisURL });
70
+ client.connect();
71
+ return client;
70
72
  }
71
73
  return null;
72
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/node",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Quill Server SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -89,7 +89,9 @@ export class CachedConnection {
89
89
  }: QuillConfig["cache"]): Mapable | null {
90
90
  if (cacheType === "redis" || cacheType === "rediss") {
91
91
  const redisURL = `${cacheType}://${username}:${password}@${host}:${port}`;
92
- return createClient({ url: redisURL }) as Mapable;
92
+ const client = createClient({ url: redisURL });
93
+ client.connect();
94
+ return client as Mapable;
93
95
  }
94
96
  return null;
95
97
  }