【发布时间】:2011-02-27 21:43:22
【问题描述】:
我想实现从数据库中提取的列表的缓存。我看过这个:
How can I cache objects in ASP.NET MVC?
我的代码中有这个:
var addresses = repository.GetAllAddresses();//returns IQueryable<string>
使用上面问题中的答案,我如何缓存这个?,我创建了 CacheExtensions 类,但不知道从那里去哪里。
【问题讨论】: