@nocobase/cache 2.0.0-alpha.9 → 2.0.0-beta.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.
@@ -55,6 +55,7 @@ export declare class CacheManager {
55
55
  */
56
56
  createBloomFilter(options?: {
57
57
  store?: string;
58
+ [key: string]: any;
58
59
  }): Promise<BloomFilter>;
59
60
  /**
60
61
  * @experimental
@@ -153,12 +153,12 @@ const _CacheManager = class _CacheManager {
153
153
  */
154
154
  async createBloomFilter(options) {
155
155
  const name = "bloom-filter";
156
- const { store = this.defaultStore } = options || {};
156
+ const { store = this.defaultStore, ...opts } = options || {};
157
157
  let cache;
158
158
  try {
159
159
  cache = this.getCache(name);
160
160
  } catch (error) {
161
- cache = await this.createCache({ name, store });
161
+ cache = await this.createCache({ name, store, ...opts });
162
162
  }
163
163
  switch (store) {
164
164
  case "memory":
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nocobase/cache",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/lock-manager": "2.0.0-alpha.9",
9
+ "@nocobase/lock-manager": "2.0.0-beta.1",
10
10
  "bloom-filters": "^3.0.1",
11
11
  "cache-manager": "^5.2.4",
12
12
  "cache-manager-redis-yet": "^4.1.2"
@@ -19,5 +19,5 @@
19
19
  "url": "git+https://github.com/nocobase/nocobase.git",
20
20
  "directory": "packages/cache"
21
21
  },
22
- "gitHead": "4a9acf96f21a3aa35bccbd188b942595b09da0a9"
22
+ "gitHead": "b3d1f65848fc91e673372ee734dafe6b1cf80586"
23
23
  }