Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 57x 57x 57x 100x 100x 57x | import { RedisClient } from 'redis-smq/dist/src/common/redis-client/redis-client'; import { redisKeys } from 'redis-smq/dist/src/common/redis-keys/redis-keys'; import { TRedisClientMulti } from 'redis-smq/dist/types'; import { SortedSetTimeSeries } from '../common/sorted-set-time-series'; export const ConsumerDeadLetteredTimeSeries = ( redisClient: RedisClient, consumerId: string, ) => { const { keyRateConsumerDeadLettered } = redisKeys.getConsumerKeys(consumerId); return new SortedSetTimeSeries(redisClient, { key: keyRateConsumerDeadLettered, }); }; export const deleteConsumerDeadLetteredTimeSeries = ( multi: TRedisClientMulti, consumerId: string, ) => { const { keyRateConsumerDeadLettered } = redisKeys.getConsumerKeys(consumerId); multi.del(keyRateConsumerDeadLettered); }; |