标签:
1.意义
把数据放到Cache中,在指定的时间内,可以直接从Cache中获取,避免对数据库等的压力。
2.做法
设置:
HttpRuntime.Cache.Insert(CacheKey, objObject,null,absoluteExpiration,slidingExpiration);
读取:
HttpRuntime.Cache[“name”]
ASP.Net Cache(缓存)—ASP.NET细枝末节(2)
标签:
原文地址:http://www.cnblogs.com/mcad/p/4352303.html