Constructors
constructor
-
Parameters
-
-
Default value chunkSize: number = 1000
Properties
Private chunkSize
chunkSize: number
Private pipeline
pipeline: Redis
Methods
addDocuments
- addDocuments<T>(docs: BatchDoc<T>[], noSave?: boolean, replace?: boolean, partial?: boolean): Promise<"OK">
-
Type parameters
Parameters
-
-
Default value noSave: boolean = false
-
Default value replace: boolean = false
-
Default value partial: boolean = false
Returns Promise<"OK">
Private partialAddDoc
- partialAddDoc<T>(noSave: boolean, replace: boolean, partial: boolean): (Anonymous function)
-
Type parameters
Parameters
-
noSave: boolean
-
replace: boolean
-
partial: boolean
Returns (Anonymous function)
A batch indexer allows you to automatically batch document indexing in pipelines, flushing it every N documents.