0
我有一個顯示職位空缺的網站。數據由第三方作爲RSS提供。CacheDependency:需要絕對路徑信息
我想將數據存儲在我們的服務器緩存中,並具有緩存依賴關係,因此在更新提要時會刷新數據。
當緩存相關性設置爲使用遠程供稿文件時,插入緩存時出現錯誤Absolute path information is required.
。
HttpRuntime.Cache.Insert("JobFeed", jobs, new CacheDependency("http://[AddressRemoved]/rssfeed.aspx"));
有什麼辦法讓它使用遠程文件而不是本地文件?我可以使用Virutal Path Provider嗎?