我希望能夠在我的緩存更新回調中傳入我的實際解析函數。如何使用代表優化我的代碼重複?由於 //intial setup code
public void getJSONContent() //can I pass itemUpdateCallback in here? Does it make sense?
{
Content = (String)HttpContext.Curren
我在這裏遇到了一些性能問題:下面的代碼是我自定義的VirtualPathProvider的一部分,我覆蓋了GetCacheKey和GetCacheDependency,因此它們可以正確緩存我的剃鬚刀視圖。 public override string GetCacheKey(string virtualPath)
{
var key = string.Empty;
var f