property
primaryEndpoint EndpointReference getGets the primary endpoint for the Redis server.
API references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
interface RedisResource extends IComputeResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithArgs, IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly host: EndpointReferenceExpression; passwordParameter: ParameterResource; readonly port: EndpointReferenceExpression; readonly primaryEndpoint: EndpointReference; readonly resourceTypeDisplayName: string; readonly tlsEnabled: boolean; readonly uriExpression: ReferenceExpression; withDataBindMount( source: string, isReadOnly?: boolean): RedisResource; withDataVolume( name?: string, isReadOnly?: boolean): RedisResource; withHostPort(port: number): RedisResource; withModule(path: string): RedisResource; withPassword(password: ParameterResource): RedisResource; withPersistence( interval?: timespan, keysChangedThreshold?: number): RedisResource; withRedisCommander(configureContainer?: (obj: RedisCommanderResource) => Promise<void>, containerName?: string): RedisResource; withRedisInsight(configureContainer?: (obj: RedisInsightResource) => Promise<void>, containerName?: string): RedisResource; withRepl(): RedisResource;}connectionStringExpression ReferenceExpression gethostEndpointReferenceExpression getpasswordParameter ParameterResource get · setportEndpointReferenceExpression getprimaryEndpoint EndpointReference getresourceTypeDisplayName stringgettlsEnabled booleangeturiExpression ReferenceExpression getwithDataBindMount( source: string, isReadOnly?: boolean): RedisResourceParameters
sourcestringThe source directory on the host to mount into the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount. Setting this to `true` will disable Redis persistence. Defaults to `false`.Returns
RedisResource withDataVolume( name?: string, isReadOnly?: boolean): RedisResourceParameters
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only volume. Setting this to `true` will disable Redis persistence. Defaults to `false`.Returns
RedisResource withHostPort(port: number): RedisResourceParameters
portnumberThe port to bind on the host. If `null` is used random port will be assigned.Returns
RedisResource withModule(path: string): RedisResourceParameters
pathstringThe absolute path to the Redis module inside the Redis container.Returns
RedisResource withPassword(password: ParameterResource): RedisResourceParameters
passwordParameterResource The parameter used to provide the password for the Redis resource. If `null`, no password will be configured.Returns
RedisResource withPersistence( interval?: timespan, keysChangedThreshold?: number): RedisResourceParameters
intervaltimespanoptionalThe interval between snapshot exports. Defaults to 60 seconds.keysChangedThreshold numberoptional= 1The number of key change operations required to trigger a snapshot at the interval. Defaults to 1.Returns
RedisResource withRedisCommander(configureContainer?: (obj: RedisCommanderResource) => Promise<void>, containerName?: string): RedisResourceParameters
configureContainer (obj: RedisCommanderResource) => Promise<void> optionalConfiguration callback for Redis Commander container resource.containerName stringoptionalOverride the container name used for Redis Commander.Returns
RedisResource withRedisInsight(configureContainer?: (obj: RedisInsightResource) => Promise<void>, containerName?: string): RedisResourceParameters
configureContainer (obj: RedisInsightResource) => Promise<void> optionalConfiguration callback for Redis Insight container resource.containerName stringoptionalOverride the container name used for Redis Insight.Returns
RedisResource withRepl(): RedisResourceReturns
RedisResource