SqlCacheDependency是否适用于Azure Blob存储?
我有一个action,它从存储中获取一些blob (值大部分时间都是常量)。我尝试使用OutputCache来执行此操作。然后,如果在blob中做了一些更改,我尝试使用SqlCacheDependency清除缓存,但这不起作用。
那么,我如何对Blobs使用SqlCacheDependency或类似的东西呢?
[HttpGet]
[OutputCache(Duration = int.MaxValue, VaryByParam = "none")]
public ActionResult GetCalculatorSalaries()
{
var salaries = _service.LoadCalculatorSalaries();
return Json(salaries, JsonRequestBehavior.AllowGet);
}发布于 2014-08-04 20:30:58
AFAIK Azure Blob和SQL Azure之间没有关系,因此sqlCacheDependency将无法工作。
新的(预览版) Azure Redis Cache可能值得研究一下。
https://stackoverflow.com/questions/25117981
复制相似问题