View on GitHub

CacheTempData

ObjectCache-based TempData provider for ASP.NET MVC.

Download this project as a .zip file Download this project as a tar.gz file

CacheTempData

CacheTempData is an ObjectCache-based TempData provider for ASP.NET MVC. The default ITempDataProvider implementation included in ASP.NET MVC uses SessionState. One of the problems with SessionState is that it blocks concurrent ajax requests. CacheTempData solves this problem by storing TempData in MemoryCache (or any other ObjectCache implementation).

Build status NuGet version

Installation

The CacheTempData package is available at NuGet. To install CacheTempData, run the following command in the Package Manager Console:

Install-Package XperiCode.CacheTempData

Documentation

There are multiple ways to use an alternative ITempDataProvider implementation in your ASP.NET MVC application. Jonathan George wrote a nice article on the subject. You can also checkout the Sample application on GitHub.

Release notes

v0.9.1

v0.9.0

Collaboration

Please report issues if you find any. Pull requests are welcome for documentation and code.