Skip to content

Instantly share code, notes, and snippets.

@sajadkardel
Last active April 2, 2021 10:55
Show Gist options
  • Save sajadkardel/a633ea81d0c319a59aeed725f10f9e69 to your computer and use it in GitHub Desktop.
Save sajadkardel/a633ea81d0c319a59aeed725f10f9e69 to your computer and use it in GitHub Desktop.
Cache in Asp,Net Article
public class HomeController : Controller
{
private readonly IMemoryCache _cache;
public HomeController(IMemoryCache cache)
{
_cache = cache;
}
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment