feat(telemetry): addressed PR suggestions

This commit is contained in:
carlosmonastyrski
2025-06-26 21:18:07 -03:00
parent 61274243e2
commit 0f04890d8f
4 changed files with 15 additions and 7 deletions
+4 -1
View File
@@ -114,7 +114,10 @@ export const keyStoreFactory = (redisConfigKeys: TRedisConfigKeys): TKeyStoreFac
const deleteItem = async (key: string) => redis.del(key);
const deleteItemsByKeyIn = async (keys: string[]) => redis.del(keys);
const deleteItemsByKeyIn = async (keys: string[]) => {
if (keys.length === 0) return 0;
return redis.del(keys);
};
const deleteItems = async ({ pattern, batchSize = 500, delay = 1500, jitter = 200 }: TDeleteItems) => {
let cursor = "0";