Skip to content
Docs Try Aspire

addRedisWithPort

Function
📦 Aspire.Hosting.Redis v13.2.0-preview.1.26159.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addRedisWithPort(
name: string,
port: number): RedisResource;
}

Signature

method addRedisWithPort builder
Adds a Redis container resource with specific port
addRedisWithPort(
name: string,
port: number): RedisResource
name string
port number
RedisResource

Applies to

This function is an extension method on the following types: