dt-common-device 7.2.5 → 7.2.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.
@@ -70,4 +70,6 @@ export declare class RedisUtils {
70
70
  * @returns The fields and values
71
71
  */
72
72
  hgetAll(key: string): Promise<any>;
73
+ sadd(key: string, member: string): Promise<number>;
74
+ smembers(key: string): Promise<string[]>;
73
75
  }
@@ -182,6 +182,12 @@ let RedisUtils = (() => {
182
182
  throw error;
183
183
  }
184
184
  }
185
+ async sadd(key, member) {
186
+ return await this.client.sadd(key, member);
187
+ }
188
+ async smembers(key) {
189
+ return await this.client.smembers(key);
190
+ }
185
191
  };
186
192
  __setFunctionName(_classThis, "RedisUtils");
187
193
  (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "7.2.5",
3
+ "version": "7.2.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [