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