Skip to main content

Function: Redis()

Redis(name?, required?): (target, propertyKey) => void

Defined in: service-core/src/decorators/DatabaseDecorators.ts:118

Apply this to a property to have the Redis connection with the given name injected at instantiation.

Parameters

name?

string = "redis"

The name of the datasource connection to inject.

required?

boolean = true

Set to true to indicate this injection must resolve, otherwise set to false. Default is true.

Returns

(target, propertyKey) => void