Update Program.cs
parent
9e21f48b0b
commit
c534380347
|
@ -10,8 +10,8 @@ builder.Services.AddControllers();
|
|||
var app = builder.Build();
|
||||
|
||||
app.MapGet("/big", ([FromKeyedServices("big")] ICache bigCache) => bigCache.Get("date"));
|
||||
|
||||
app.MapGet("/small", ([FromKeyedServices("small")] ICache smallCache) => smallCache.Get("date"));
|
||||
app.MapGet("/small", ([FromKeyedServices("small")] ICache smallCache) =>
|
||||
smallCache.Get("date"));
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
@ -48,4 +48,4 @@ public class MyHub : Hub
|
|||
{
|
||||
Console.WriteLine(cache.Get("signalr"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue