mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
[bull] fix: add missing low level methods (#42647)
* fix: add multi and toKey methods * fix: return pipeline without promise * test: add test * style: fix lint
This commit is contained in:
@@ -250,3 +250,8 @@ new Queue('profile');
|
||||
new Queue('profile', 'url');
|
||||
new Queue('profile', { prefix: 'test' });
|
||||
new Queue('profile', 'url', { prefix: 'test' });
|
||||
|
||||
// Use low-level API
|
||||
const multi = myQueue.multi();
|
||||
multi.del(myQueue.toKey('repeat'));
|
||||
multi.exec();
|
||||
|
||||
Vendored
+10
@@ -746,6 +746,16 @@ declare namespace Bull {
|
||||
*/
|
||||
clean(grace: number, status?: JobStatusClean, limit?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that marks the start of a transaction block.
|
||||
*/
|
||||
multi(): Redis.Pipeline;
|
||||
|
||||
/**
|
||||
* Returns the queue specific key.
|
||||
*/
|
||||
toKey(queueType: string): string;
|
||||
|
||||
/**
|
||||
* Listens to queue events
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user