Created
January 2, 2018 22:10
-
-
Save vmussak/333146013e72be1fe22b2903b0e8bc8a to your computer and use it in GitHub Desktop.
Adicionando o IMemoryCache no Controller.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeController : Controller | |
{ | |
private IMemoryCache _cache; | |
public HomeController(IMemoryCache memoryCache) | |
{ | |
_cache = memoryCache; | |
} | |
//resto do Controller... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment