PrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceAPI references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
A resource that represents a Redis resource independent of the hosting model.
type RedisResource interface { ExpressionValue IComputeResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionHostEndpointReferenceExpression getHost() EndpointReferenceExpressionPasswordParameter ParameterResource get · setPasswordParameter() ParameterResourceSetPasswordParameter(value ParameterResource) RedisResourcePortEndpointReferenceExpression getPort() EndpointReferenceExpressionPrimaryEndpoint EndpointReference getPrimaryEndpoint() EndpointReferenceResourceTypeDisplayName stringgetResourceTypeDisplayName() (string, error)TlsEnabled boolgetTlsEnabled() (bool, error)UriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionWithDataBindMount( source string, options ...*WithDataBindMountOptions,) RedisResourceParameters
sourcestringThe source directory on the host to mount into the container.options...*WithDataBindMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataBindMountOptions argument.
IsReadOnly *boolA flag that indicates if this is a read-only mount. Setting this to true will disable Redis persistence. Defaults to false.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
WithDataVolume(options ...*WithDataVolumeOptions) RedisResourceParameters
options...*WithDataVolumeOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.
Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.IsReadOnly *boolA flag that indicates if this is a read-only volume. Setting this to true will disable Redis persistence. Defaults to false.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
WithHostPort(port *float64) RedisResourceParameters
port*float64The port to bind on the host. If null is used random port will be assigned.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
WithModule(path string) RedisResourceParameters
pathstringThe absolute path to the Redis module inside the Redis container.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
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 The resource builder.
Returns a handle; failures surface later via Err().
WithPersistence(options ...*WithPersistenceOptions) RedisResourceParameters
options...*WithPersistenceOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPersistenceOptions argument.
Interval*float64The interval between snapshot exports. Defaults to 60 seconds.KeysChangedThreshold *float64The number of key change operations required to trigger a snapshot at the interval. Defaults to 1.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
WithRedisCommander(options ...*WithRedisCommanderOptions) RedisResourceParameters
options...*WithRedisCommanderOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithRedisCommanderOptions argument.
ConfigureContainer func(obj RedisCommanderResource) callbackConfiguration callback for Redis Commander container resource.ContainerName *stringOverride the container name used for Redis Commander.Returns
RedisResource Returns a handle; failures surface later via Err().
WithRedisInsight(options ...*WithRedisInsightOptions) RedisResourceParameters
options...*WithRedisInsightOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithRedisInsightOptions argument.
ConfigureContainer func(obj RedisInsightResource) callbackConfiguration callback for Redis Insight container resource.ContainerName *stringOverride the container name used for Redis Insight.Returns
RedisResource Returns a handle; failures surface later via Err().
WithRepl() RedisResourceReturns
RedisResource The resource builder for chaining.
Returns a handle; failures surface later via Err().