dt-common-device 7.2.6 → 7.2.7
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.
|
@@ -188,6 +188,15 @@ let RedisUtils = (() => {
|
|
|
188
188
|
async smembers(key) {
|
|
189
189
|
return await this.client.smembers(key);
|
|
190
190
|
}
|
|
191
|
+
async srem(key, ...members) {
|
|
192
|
+
try {
|
|
193
|
+
return await this.client.srem(key, ...members);
|
|
194
|
+
}
|
|
195
|
+
catch (error) {
|
|
196
|
+
console.error(`Error removing members from set ${key}:`, error);
|
|
197
|
+
throw error;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
191
200
|
};
|
|
192
201
|
__setFunctionName(_classThis, "RedisUtils");
|
|
193
202
|
(() => {
|