0
我被给了一个现有的Umbraco项目,其中我看到几乎代码正在缓存,但我只知道有关缓存。Umbraco XML缓存怎么看?
在该项目上,它有一个名为“CacheManager”的类,并充满了具有“ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem”,“.RequestCache”和任何类型缓存的方法。
现在我不知道我怎么能看到这些缓存,专门的钥匙,因为我看到这个代码:
public static T GetCacheItem<T>(string cacheKey)
{
return ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem<T>(cacheKey);
}
有什么办法,我可以看到cacheKey及其对应值的列表?所以我知道cacheKey要获得什么?提前致谢。