GarnetResource

Handle
📦 Aspire.Hosting.Garnet v17.0.0
interface GarnetResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly passwordParameter: ParameterResource;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly resourceTypeDisplayName: string;
readonly uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): GarnetResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): GarnetResource;
withPersistence(interval?: timespan): GarnetResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Garnet server.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
propertypasswordParameterParameterResourceget
Gets the parameter that contains the Garnet server password.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint for the Garnet server.
propertyresourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the Garnet server.

Methods

methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a Garnet container resource and enables Garnet persistence.
withDataBindMount(
source: string,
isReadOnly?: boolean): GarnetResource
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount. Setting this to `true` will disable Garnet persistence. Defaults to `false`.
GarnetResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
withDataVolume(
name?: string,
isReadOnly?: boolean): GarnetResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume. Setting this to `true` will disable Garnet persistence. Defaults to `false`.
GarnetResource
methodwithPersistencebuilder
Configures a Garnet container resource for persistence.
withPersistence(interval?: timespan): GarnetResource
intervaltimespanoptionalThe interval between snapshot exports. Defaults to 60 seconds.
GarnetResource