如何设计一个ASP.NET MVC网站的缓存与速度?缓存、速度、网站、ASP

2023-09-04 01:33:23 作者:Come to a bad end 死无葬身之地

我从灯的世界,这里的缓存的一切的心态是prevalent到来。一切都放在内存缓存。

I'm coming from the LAMP world, where the "cache everything" mentality is prevalent. Everything is put in memcache.

我开始与ASP.NET MVC和SQL Server的一个新项目。我可能会去的LINQ to SQL或者实体框架。是否有设计决定我需要现在缓存,或者是它很容易开始使用速度如果变成有必要吗?只是要清楚,我说的是微软的速度高速缓存,而不是在Apache Velocity模板引擎。

I'm starting a new project with ASP.NET MVC and SQL Server. I'll probably go with LINQ to SQL or maybe Entity Framework. Are there design decisions I need to make now for caching, or is it easy enough to start using Velocity if that becomes necessary? Just to be clear, I'm talking about Microsoft's Velocity cache and not the Apache Velocity template engine.

我希望我可以忽略缓存的那一刻,因为学习C#,ASP.NET MVC,LINQ,IIS,SQL Server和成为精通VS是保持我的盘子满了。

I'm hoping that I can ignore caching for the moment, because learning C#, ASP.NET MVC, LINQ, IIS, SQL Server, and becoming proficient in VS is keeping my plate full.

推荐答案

斯蒂芬·瓦尔特对如何做到这一点有很大的文章

Stephen Walther has a great article on how to do this

ASP.NET MVC的提示#39 - 使用速度分布式缓存