Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Windows Server AppFabric 1.1 并希望在 asp.net MVC3 应用程序中使用缓存。我该如何开始?我尝试了许多在线示例,但它给出了运行时错误。请帮助我使用示例应用程序或教程。
您可以在 asp.net MVC 3 中以三种方式使用 AppFabric 缓存:
作为会话状态提供者
此提供程序使您能够将会话状态存储在分布式缓存中,而不是内存中或 SQL Server 数据库中。MSDN链接在这里
作为输出提供程序 ,AppFabric 提供程序插入 ASP.NET 4 中引入的新输出缓存提供程序扩展点。 MSDN 链接在这里
作为分布式数据缓存 创建用于从缓存中放置、检索和删除对象的代码。维基在这里。确保正确安装AppFabric 并且它正在运行。
最后,您的运行时错误是什么?