如何设计一个ASP.NET MVC网站的缓存与速度? [英] How to design an ASP.NET MVC site for caching with Velocity?

查看:110
本文介绍了如何设计一个ASP.NET MVC网站的缓存与速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从灯的世界,这里的缓存的一切的心态是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

<一个href="http://stephenwalther.com/blog/archive/2008/08/28/asp-net-mvc-tip-39-use-the-velocity-distributed-cache.aspx"相对=nofollow> ASP.NET MVC的提示#39 - 使用速度分布式缓存

这篇关于如何设计一个ASP.NET MVC网站的缓存与速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆