Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RedisInsightResource

Handle
📦 Aspire.Hosting.Redis v17.0.0
type RedisInsightResource interface {
IComputeResource
Resource
ResourceWithArgs
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Methods

methodWithDataBindMountbuilder
Adds a bind mount for the data folder to a Redis Insight container resource.
WithDataBindMount(source string) RedisInsightResource
sourcestringThe source directory on the host to mount into the container.
RedisInsightResource

The resource builder.

Returns a handle; failures surface later via Err().

methodWithDataVolumebuilder
Adds a named volume for the data folder to a Redis Insight container resource.
WithDataVolume(options ...*RedisInsightResourceWithDataVolumeOptions) RedisInsightResource
options...*RedisInsightResourceWithDataVolumeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*RedisInsightResourceWithDataVolumeOptions argument.

Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
RedisInsightResource

The resource builder.

Returns a handle; failures surface later via Err().

methodWithHostPortbuilder
Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
WithHostPort(port *float64) RedisInsightResource
port*float64The port to bind on the host. If null is used random port will be assigned.
RedisInsightResource

The resource builder for RedisInsight.

Returns a handle; failures surface later via Err().