Type aliases
ConsumerOptions
ConsumerOptions: object
Type declaration
Optional block?: undefined | number
Optional count?: undefined | number
Optional from?: undefined | string
DeserializedPair
Deserialized
Pair: [ Id , T ]
Emitter
Emitter: object
Type declaration
on: function
on( eventName: string , callback: listener ) : void
OpenOptions
OpenOptions: object
Type declaration
Optional block?: undefined | number
Optional client?: IORedis.Redis
Optional consumer?: undefined | string
Optional count?: undefined | number
Optional from?: undefined | string
Optional group?: undefined | string
Optional stream?: undefined | string
Pending
Pending: object
Type declaration
consumer: string
created: Date
deliveries: number
group: string
stream: string
waiting: number
PendingTuple
Pending
Tuple: [ Id , string , number , number ]
SerializedPair
Serialized
Pair: [ Id , [ never , string ] ]
WriterOptions
WriterOptions: object
Type declaration
Optional maxLength?: undefined | number
listener
listener: function
Functions
Const deserialize
deserialize<T>( str: string ) : T
Type parameters
Parameters
Returns T
Const deserializePair
Type parameters
Parameters
Returns [ string , T ]
Const doneWithBacklog
doneWithBacklog<T>( items: T [] ) : boolean
Type parameters
Parameters
Returns boolean
Const fill
fill( n?: number ) : number []
Parameters
Default value n: number = 1
Returns number []
Const isConnectionClosedError
isConnectionClosedError( err: Error ) : boolean
Parameters
Returns boolean
Const isGroupAlreadyExistsError
isGroupAlreadyExistsError( err: Error ) : boolean
Parameters
Returns boolean
Const isNoGroupExistsError
isNoGroupExistsError( err: Error ) : boolean
Parameters
Returns boolean
Const on
on( emitter: Emitter , eventName: string ) : Promise < Object >
Parameters
Returns Promise < Object >
Const serialize
serialize<T>( val: T ) : string
Type parameters
Parameters
Returns string
Const sleep
sleep( ms?: number ) : Promise < Object >
Parameters
Default value ms: number = 0
Returns Promise < Object >
Const step
step<T>( consumer: Consumer < T > ) : Promise < [ string , T ] >
Type parameters
Parameters
Returns Promise < [ string , T ] >
Object literals
Const defaultOptions
defaultOptions: object
maxLength
maxLength: number = 1000
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
The amount of time in milliseconds which the Redis client should block before timing out. When a timeout occurs, the
Consumerwill loop back around and re-initiate a group read.Set to
'0'to never timeout.Note that any given Redis client using a blocking operation like
XREADGROUPwill block all other commands from being issued on the same connection while it is pending.