Skip to content
Docs Try Aspire

RedisResource

Handle
📦 Aspire.Hosting.Azure.Redis v13.2.0
interface RedisResource
extends IComputeResource,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
entrypoint: string;
readonly host: EndpointReferenceExpression;
readonly name: string;
passwordParameter: ParameterResource;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
shellExecution: boolean;
readonly tlsEnabled: boolean;
readonly uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): RedisResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): RedisResource;
withHostPort(port: number): RedisResource;
withPassword(password: ParameterResource): RedisResource;
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): RedisResource;
withRedisCommander(configureContainer?: (obj: RedisCommanderResource) => void, containerName?: string): RedisResource;
withRedisInsight(configureContainer?: (obj: RedisInsightResource) => void, containerName?: string): RedisResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the ConnectionStringExpression property
property entrypoint string get · set
Gets the Entrypoint property
property host EndpointReferenceExpression get
Gets the Host property
property name string get
Gets the Name property
property passwordParameter ParameterResource get · set
Gets the PasswordParameter property
property port EndpointReferenceExpression get
Gets the Port property
property primaryEndpoint EndpointReference get
Gets the PrimaryEndpoint property
property shellExecution boolean get · set
Gets the ShellExecution property
property tlsEnabled boolean get
Gets the TlsEnabled property
property uriExpression ReferenceExpression get
Gets the UriExpression property

Methods

method withDataBindMount builder
Adds a data bind mount with persistence
withDataBindMount(
source: string,
isReadOnly?: boolean): RedisResource
source string
isReadOnly boolean optional = False
RedisResource
method withDataVolume builder
Adds a data volume with persistence
withDataVolume(
name?: string,
isReadOnly?: boolean): RedisResource
name string optional
isReadOnly boolean optional = False
RedisResource
method withHostPort builder
Sets the host port for Redis
withHostPort(port: number): RedisResource
port number
RedisResource
method withPassword builder
Configures the password for Redis
withPassword(password: ParameterResource): RedisResource
password ParameterResource
RedisResource
method withPersistence builder
Configures Redis persistence
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): RedisResource
interval timespan optional
keysChangedThreshold number optional = 1
RedisResource
method withRedisCommander builder
Adds Redis Commander management UI
withRedisCommander(configureContainer?: (obj: RedisCommanderResource) => void, containerName?: string): RedisResource
configureContainer (obj: RedisCommanderResource) => void optional
containerName string optional
RedisResource
method withRedisInsight builder
Adds Redis Insight management UI
withRedisInsight(configureContainer?: (obj: RedisInsightResource) => void, containerName?: string): RedisResource
configureContainer (obj: RedisInsightResource) => void optional
containerName string optional
RedisResource