@nocobase/cache 2.0.0-alpha.8 → 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.
- package/lib/cache-manager.d.ts +1 -0
- package/lib/cache-manager.js +2 -2
- package/package.json +3 -3
package/lib/cache-manager.d.ts
CHANGED
package/lib/cache-manager.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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": "
|
|
22
|
+
"gitHead": "b3d1f65848fc91e673372ee734dafe6b1cf80586"
|
|
23
23
|
}
|