withHostPort
Method
interface RedisResource { // ... omitted for brevity withHostPort(port: number): RedisResource;}Signature
method
withHostPort builder Configures the host port that the Redis resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): RedisResourceParameters
port number Returns
RedisResource Applies to
This method applies to the following types: