Skip to content
DocsTry Aspire
DocsTry

RedisCommanderResource.withHostPort

Method
📦 Aspire.Hosting.Redis v13.4.0
interface RedisCommanderResource {
// ... omitted for brevity
withHostPort(port: number): RedisCommanderResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): RedisCommanderResource
portnumber
RedisCommanderResource

Defined on

This method is defined on the following type: