1 instantiation of GarnetResource
Aspire.Hosting.Garnet.Tests (1)
GarnetPublicApiTests.cs (1)
41
var action = () => new
GarnetResource
(name);
24 references to GarnetResource
Aspire.Hosting.Garnet (17)
GarnetBuilderExtensions.cs (17)
55
public static IResourceBuilder<
GarnetResource
> AddGarnet(this IDistributedApplicationBuilder builder, [ResourceName] string name,
61
var
garnet = new GarnetResource(name);
79
.WithEndpoint(port: port, targetPort: 6379, name:
GarnetResource
.PrimaryEndpointName)
89
/// Use <see cref="WithPersistence(IResourceBuilder{
GarnetResource
}, TimeSpan?)"/> to adjust Garnet persistence configuration, e.g.:
103
public static IResourceBuilder<
GarnetResource
> WithDataVolume(this IResourceBuilder<
GarnetResource
> builder,
122
/// Use <see cref="WithPersistence(IResourceBuilder{
GarnetResource
}, TimeSpan?)"/> to adjust Garnet persistence configuration, e.g.:
136
public static IResourceBuilder<
GarnetResource
> WithDataBindMount(this IResourceBuilder<
GarnetResource
> builder,
155
/// Use with <see cref="WithDataBindMount(IResourceBuilder{
GarnetResource
}, string, bool)"/>
156
/// or <see cref="WithDataVolume(IResourceBuilder{
GarnetResource
}, string?, bool)"/> to persist Garnet data across sessions with custom persistence configuration, e.g.:
168
public static IResourceBuilder<
GarnetResource
> WithPersistence(this IResourceBuilder<
GarnetResource
> builder,
176
/// Use with <see cref="WithDataBindMount(IResourceBuilder{
GarnetResource
}, string, bool)"/>
177
/// or <see cref="WithDataVolume(IResourceBuilder{
GarnetResource
}, string?, bool)"/> to persist Garnet data across sessions with custom persistence configuration, e.g.:
187
public static IResourceBuilder<
GarnetResource
> WithPersistence(this IResourceBuilder<
GarnetResource
> builder,
Aspire.Hosting.Garnet.Tests (7)
AddGarnetTests.cs (4)
24
var
containerResource = Assert.Single(appModel.Resources.OfType<
GarnetResource
>());
52
var
containerResource = Assert.Single(appModel.Resources.OfType<
GarnetResource
>());
GarnetPublicApiTests.cs (3)
50
IResourceBuilder<
GarnetResource
> builder = null!;
75
IResourceBuilder<
GarnetResource
> builder = null!;
86
IResourceBuilder<
GarnetResource
> builder = null!;