CommunityServer中的缓存处理

//文件依赖模式
//SiteUrls..cs


const string cacheKey = "SiteUrls";

SiteUrls siteUrls = CSCache.Get(cacheKey) as SiteUrls;
           
if(siteUrls == null)
{
 CacheDependency dep = new CacheDependency(file);
 CSCache.Max(cacheKey, siteUrls, dep);
}

 

posted @ 2005-09-29 17:02 烈马狂生 阅读(120) 评论(0) 编辑 收藏