To use an in memory cache in your ASP.NET application, add the following dependencies to your project.json file:
"Microsoft.Extensions.Caching.Memory": "1.0.0-rc2-final",
add the cache service (from Microsoft.Extensions.Caching.Memory) to ConfigureServices method in Startup...