mm_cache 1.5.0 → 1.5.2
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/compatibility_table.md +3 -13
- package/package.json +4 -4
package/compatibility_table.md
CHANGED
|
@@ -6,20 +6,10 @@
|
|
|
6
6
|
|-------|-------|---------|-----------|--------|----------|
|
|
7
7
|
| set | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作 |
|
|
8
8
|
| get | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作 |
|
|
9
|
-
| del | ✅ | ✅ | ✅ | ✅ |
|
|
10
|
-
if (typeof this !== 'object' || this === null || Array.isArray(this)) {
|
|
11
|
-
throw new TypeError('del方法只能用于普通对象');
|
|
12
|
-
}
|
|
13
|
-
return del(this, key_path, overwrite);
|
|
14
|
-
} |
|
|
9
|
+
| del | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作 |
|
|
15
10
|
| has | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作 |
|
|
16
11
|
| clear | ✅ | ✅ | ✅ | ✅ | 所有方式功能实现效果相同,返回值一致 |
|
|
17
|
-
| keys | ✅ | ✅ | ✅ | ✅ |
|
|
18
|
-
if (typeof this !== 'object' || this === null) {
|
|
19
|
-
throw new TypeError('keys方法只能用于对象');
|
|
20
|
-
}
|
|
21
|
-
return keys(this, include_proto, include_private);
|
|
22
|
-
} |
|
|
12
|
+
| keys | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作 |
|
|
23
13
|
| ttl | ✅ | ✅ | ✅ | ✅ | 所有方式均支持Redis语义,返回-1表示键存在但无过期时间,-2表示键不存在 |
|
|
24
14
|
|
|
25
15
|
## 原子操作方法
|
|
@@ -38,7 +28,7 @@
|
|
|
38
28
|
|
|
39
29
|
| 方法名 | Redis | MongoDB | CacheBase | Memory | 状态说明 |
|
|
40
30
|
|-------|-------|---------|-----------|--------|----------|
|
|
41
|
-
| addStr | ✅ |
|
|
31
|
+
| addStr | ✅ | ⚠️ | ⚠️ | ⚠️ | 所有方式功能实现效果相同,参数类型和返回值一致 |
|
|
42
32
|
| strlen | ✅ | ✅ | ✅ | ✅ | 所有方式均正常工作,参数类型和返回值一致 |
|
|
43
33
|
|
|
44
34
|
## 批量操作方法
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_cache",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "一个统一的缓存操作框架,为多种缓存方式(Redis、MongoDB、CacheBase、Memory)提供统一的API接口,实现无缝切换和兼容",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://gitee.com/qiuwenwu/mm_cache#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"mm_cachebase": "^
|
|
34
|
-
"mm_mongodb": "^
|
|
35
|
-
"mm_redis": "^2.1.
|
|
33
|
+
"mm_cachebase": "^2.0.1",
|
|
34
|
+
"mm_mongodb": "^2.0.1",
|
|
35
|
+
"mm_redis": "^2.1.5"
|
|
36
36
|
}
|
|
37
37
|
}
|