开发者

Is there any Disk Cache solution for ASP.NET? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently ac开发者_如何学JAVAcepting answers.

Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

My client has a busy traffic site with a big amount of pages, ASP.NET's built-in cache solutions is good, but it only stores content into the memory. Since the site has a big amount of pages, so I think disk caching would be a better idea. But after searching I didn't find a solution, any suggestions?


There is the ConcurrentCache project on codeplex which has support for 4 caching modes:

  • Memory
  • Files
  • Compressed
  • Auto

I can't say much about the project as I only just found it myself but I'm giving it a go right now.


ASP.NET 4.0 allows you to write your own cache provider. Scott Gu's blog discusses the details.


.Net 4 lets you write your own using OutputCacheProvider and there may be some examples out there. No doubt someone will roll out an open source project around this when .Net 4 gets more traction.

There was one in ASP.Net 2.0 Betas apparently, but it got removed in the RTM. You can still find references to the web.config DiskCache parameter.


This gist is based on Scott Mitchell's article.


DiskCache.NET is a library that lets you cache data in a file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜