MCPcopy
hub / github.com/redis/ioredis / execute

Method execute

lib/cluster/DelayQueue.ts:44–59  ·  view source on GitHub ↗
(bucket: string)

Source from the content-addressed store, hash-verified

42 }
43
44 private execute(bucket: string): void {
45 const queue = this.queues[bucket];
46 if (!queue) {
47 return;
48 }
49 const { length } = queue;
50 if (!length) {
51 return;
52 }
53 debug("send %d commands in %s queue", length, bucket);
54
55 this.queues[bucket] = null;
56 while (queue.length > 0) {
57 queue.shift()();
58 }
59 }
60}

Callers 2

pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected