项目开发中经常使用的缓存

  1. Http.RunTime.Cache
  2. OutputCache
  3. Redis

Http.RunTime.Cache

单机缓存,最常用的缓存写法,要注意并发的问题。
 

OutputCache

单机缓存,缓存在本地,MVC中是作为filter特性出现的,它可以缓存action输出的任何object对象。
 

Redis

分布式缓存,也是保存在内存中。
原文地址:https://www.cnblogs.com/mcgrady/p/4680419.html