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要獲得什麼?提前致謝。