mm_cache 1.5.4 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_cache",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "一个统一的缓存操作框架,为多种缓存方式(Redis、MongoDB、CacheBase、Memory)提供统一的API接口,实现无缝切换和兼容",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,9 +8,12 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://gitee.com/qiuwenwu/mm_cache.git"
11
+ "url": "git+https://gitee.com/qiuwenwu91/mm_cache.git"
12
12
  },
13
13
  "keywords": [
14
+ "mm_mod",
15
+ "mm_port",
16
+ "mm_cache",
14
17
  "cache",
15
18
  "async",
16
19
  "await",
@@ -23,15 +26,23 @@
23
26
  "run",
24
27
  "exec"
25
28
  ],
29
+ "layer": "adapter",
30
+ "group": "cache",
26
31
  "author": "邱文武",
27
32
  "license": "ISC",
28
33
  "bugs": {
29
- "url": "https://gitee.com/qiuwenwu/mm_cache/issues"
34
+ "url": "https://gitee.com/qiuwenwu91/mm_cache/issues"
30
35
  },
31
- "homepage": "https://gitee.com/qiuwenwu/mm_cache#readme",
36
+ "homepage": "https://gitee.com/qiuwenwu91/mm_cache#readme",
32
37
  "dependencies": {
33
38
  "mm_cachebase": "^2.0.4",
34
39
  "mm_mongodb": "^2.0.3",
35
- "mm_redis": "^2.1.7"
40
+ "mm_redis": "^2.1.7",
41
+ "mm_corejs": "^1.1.4",
42
+ "mm_mod": "^1.0.1",
43
+ "mm_helper": "^1.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "mm_eslint": "^1.7.7"
36
47
  }
37
- }
48
+ }
package/test.js CHANGED
@@ -1,3 +1,16 @@
1
+ // 独立运行时补充全局 $ 对象(mm_os 宿主环境已提供,npm 包测试需自备)
2
+ if (!global.$) {
3
+ global.$ = {
4
+ log: {
5
+ debug: console.debug ? console.debug.bind(console) : console.log.bind(console),
6
+ info: console.info ? console.info.bind(console) : console.log.bind(console),
7
+ warn: console.warn ? console.warn.bind(console) : console.log.bind(console),
8
+ error: console.error ? console.error.bind(console) : console.log.bind(console),
9
+ success: console.log.bind(console)
10
+ }
11
+ };
12
+ }
13
+
1
14
  const { Cache, cacheAdmin } = require('./index.js');
2
15
 
3
16
  // 测试统计变量