Skip to main content

InMemoryJobBufferStorageStrategy

A JobBufferStorageStrategy which keeps the buffered jobs in memory. Should not be used in production, since it will lose data in the event of the server stopping.

Instead, use the DefaultJobQueuePlugin with the useDatabaseForBuffer: true option set, or the BullMQJobQueuePlugin or another custom strategy with persistent storage.

Signature

bufferStorage

property

add

method(bufferId: string, job: Job) => Promise<Job>

bufferSize

method(bufferIds?: string[]) => Promise<{ [bufferId: string]: number }>

flush

method(bufferIds?: string[]) => Promise<{ [bufferId: string]: Job[] }>
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page