Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created January 2, 2018 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/333146013e72be1fe22b2903b0e8bc8a to your computer and use it in GitHub Desktop.
Save vmussak/333146013e72be1fe22b2903b0e8bc8a to your computer and use it in GitHub Desktop.
Adicionando o IMemoryCache no Controller.
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