Started working on output caching api results

This commit is contained in:
2025-01-26 15:06:06 +01:00
parent 2dd3f7f5be
commit 97805795b7
9 changed files with 32 additions and 9 deletions

View File

@@ -14,6 +14,7 @@
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.0.0"/>
<PackageReference Include="Aspire.Hosting.PostgreSQL" Version="9.0.0" />
<PackageReference Include="Aspire.Hosting.Redis" Version="9.0.0" />
</ItemGroup>
<ItemGroup>

View File

@@ -5,9 +5,13 @@ var postgres = builder.AddPostgres("postgres")
var db = postgres.AddDatabase("data");
var cache = builder.AddRedis("cache");
var api = builder.AddProject<Projects.Portfolio_Api>("api")
.WithReference(db)
.WaitFor(db);
.WaitFor(db)
.WithReference(cache)
.WaitFor(cache);
builder.AddProject<Projects.Portfolio_Web>("web")
.WithReference(api)