addRedis
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addRedis( name: string, port?: number, password?: ParameterResource): RedisResource;}Signature
method
addRedis builderAdds a Redis container to the application model.
addRedis( name: string, port?: number, password?: ParameterResource): RedisResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.portnumberoptionalThe host port to bind the underlying container to.passwordParameterResource optionalThe parameter used to provide the password for the Redis resource. If `null` a random password will be generated.Returns
RedisResource Applies to
This method applies to the following types: