@xiaoguomeiyitian/core 1.3.0 → 1.3.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.
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaoguomeiyitian/core",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "types/lib.d.ts",
6
6
  "bin": {
package/types/lib.d.ts CHANGED
@@ -15,8 +15,10 @@ export declare class Global {
15
15
  getPropDefault(type: string, prop: string): any;
16
16
  /**从redis读取数据 */
17
17
  loadByRedis(type: string, id: string): Promise<any>;
18
- /**数据写入到redis */
19
- setToRedis(type: string, id: string, data: any): Promise<void>;
18
+ /**数据写入到redis del 是否删除重新完整保存 默认 false */
19
+ setToRedis(type: string, id: string, data: any, del?: boolean): Promise<void>;
20
+ /**从redis删除*/
21
+ delByReids(type: string, id: string): Promise<void>;
20
22
  /**根据条件从mongo中查询单条实体数据*/
21
23
  findOne(type: string, filter: any, keys?: string[]): Promise<any>;
22
24
  /**根据条件从mongo中查询多条实体数据*/