AzureRedisCacheResource
Class net10.0
Represents an Azure Cache for Redis resource.
namespace Aspire.Hosting.Azure;
public class AzureRedisCacheResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} AzureProvisioningResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithEndpointsIValueProviderIValueWithReferences
9 members
Constructors1
Section titled ConstructorsProperties6
Section titled PropertiesAnnotationsgetResourceAnnotationCollectionConnectionStringExpressiongetReferenceExpression Gets the connection string template for the manifest for the Azure Cache for Redis resource.
HostNamegetReferenceExpression Gets the host name for the Redis server.
NameOutputReferencegetBicepOutputReference Gets the "name" output reference for the resource.
PasswordgetReferenceExpression? Gets the password for the Redis server when running as a container.
UseAccessKeyAuthenticationgetbool Gets a value indicating whether the resource uses access key authentication.
Methods2
Section titled MethodsAddAsExistingResource(AzureResourceInfrastructure)ProvisionableResource Adds a new
Primitives.ProvisionableResource into infra. The new resource represents a reference to the current Azure.AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource. AddRoleAssignments(IAddRoleAssignmentsContext) Adds role assignments to this Azure resource.