Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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