@nocobase/cache 1.4.0-alpha.9 → 1.5.0-alpha.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.
@@ -70,6 +70,10 @@ const _CacheManager = class _CacheManager {
70
70
  redis: {
71
71
  store: import_cache_manager_redis_yet.redisStore,
72
72
  close: /* @__PURE__ */ __name(async (redis) => {
73
+ var _a;
74
+ if (!((_a = redis.client) == null ? void 0 : _a.isOpen)) {
75
+ return;
76
+ }
73
77
  await redis.client.quit();
74
78
  }, "close")
75
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cache",
3
- "version": "1.4.0-alpha.9",
3
+ "version": "1.5.0-alpha.1",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
@@ -18,5 +18,5 @@
18
18
  "url": "git+https://github.com/nocobase/nocobase.git",
19
19
  "directory": "packages/cache"
20
20
  },
21
- "gitHead": "af26b630a5b590f986e21231f0db289c65dd7f70"
21
+ "gitHead": "abe58fad69534a13c2502a47da86425a597c3ba3"
22
22
  }