@nocobase/cache 1.3.39-beta → 1.4.0-alpha

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.
@@ -106,7 +106,7 @@ const _CacheManager = class _CacheManager {
106
106
  }
107
107
  async createCache(options) {
108
108
  const { name, prefix, store = this.defaultStore, ...config } = options;
109
- if (!import_lodash.default.isEmpty(config)) {
109
+ if (!import_lodash.default.isEmpty(config) || store === "memory") {
110
110
  const newStore = await this.createStore({ name, storeType: store, ...config });
111
111
  return this.newCache({ name, prefix, store: newStore });
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cache",
3
- "version": "1.3.39-beta",
3
+ "version": "1.4.0-alpha",
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": "68daadf8575cddf9eeb09a1a672f9baf7aabe67a"
21
+ "gitHead": "f097a2bddec152522b5645bd5d451f4c866d2060"
22
22
  }