I am using Asp.net 5 and MVC 6 targeting the .Net framework 4.5.2 I want to use the following code:
Cache["test"] = "test";
or
HttpContext.Cache["test"] = "test";
But both get the following error that Cache doesn't exist in this context. What am I missing??
Edit:
As answered below, you can cache using the IMemoryCache interface by injecting it into your controller. This seems to be new in asp.net 5 RC1.