pull/225/head
Rick Anderson 2023-10-12 16:52:35 -10:00
parent 9e21f48b0b
commit 7959fd7528
1 changed files with 2 additions and 7 deletions

View File

@ -30,20 +30,15 @@ public class SmallCache : ICache
[Route("/cache")]
public class CustomServicesApiController : Controller
{
public ActionResult<object> GetOk(ICache cache)
{
return cache.Get("data-mvc");
}
[HttpGet("big")]
public ActionResult<object> GetBigCache([FromKeyedServices("big")] ICache cache)
{
return GetOk(cache);
return cache.Get("data-mvc");
}
[HttpGet("small")]
public ActionResult<object> GetSmallCache([FromKeyedServices("small")] ICache cache)
{
return GetOk(cache);
return cache.Get("data-mvc");
}
}