17 references to ValkeyResource
Aspire.Hosting.Valkey (13)
ValkeyBuilderExtensions.cs (13)
55public static IResourceBuilder<ValkeyResource> AddValkey(this IDistributedApplicationBuilder builder, 59var valkey = new ValkeyResource(name); 78.WithEndpoint(port: port, targetPort: 6379, name: ValkeyResource.PrimaryEndpointName) 94/// Use <see cref="WithPersistence(IResourceBuilder{ValkeyResource}, TimeSpan?, long)"/> to adjust Valkey persistence configuration, e.g.: 102public static IResourceBuilder<ValkeyResource> WithDataVolume(this IResourceBuilder<ValkeyResource> builder, 125/// Use <see cref="WithPersistence(IResourceBuilder{ValkeyResource}, TimeSpan?, long)"/> to adjust Valkey persistence configuration, e.g.: 133public static IResourceBuilder<ValkeyResource> WithDataBindMount(this IResourceBuilder<ValkeyResource> builder, 152/// Use with <see cref="WithDataBindMount(IResourceBuilder{ValkeyResource}, string, bool)"/> 153/// or <see cref="WithDataVolume(IResourceBuilder{ValkeyResource}, string?, bool)"/> to persist Valkey data across sessions with custom persistence configuration, e.g.: 161public static IResourceBuilder<ValkeyResource> WithPersistence(this IResourceBuilder<ValkeyResource> builder,
Aspire.Hosting.Valkey.Tests (4)
AddValkeyTests.cs (4)
24var containerResource = Assert.Single(appModel.Resources.OfType<ValkeyResource>()); 52var containerResource = Assert.Single(appModel.Resources.OfType<ValkeyResource>());