SQL Azure doesn't support SqlCacheDependency? is there any replacement for that

北战南征 提交于 2019-12-30 09:45:10

问题


How can I implement the SQL caching dependency while SQL Azure doesn't support SqlCacheDependency.


回答1:


The MSDN article Caching in ASP.NET with the SqlCacheDependency Class describes how SqlCacheDependency is implemented. Starting with SQL Server 2005, the SqlCacheDependency class is able to take advantage of SQL Server Service Broker and Query Notifications. Since SQL Server Service Broker was introduced with SQL Server 2005, the implementation of SqlCacheDependency for earlier versions of SQL Server uses a different technique: polling.

SQL Azure currently does not support SQL Server Service Broker, but it does support polling. Thus, either setup SqlCacheDependency using the polling mechanism or create your own custom CacheDependency.



来源:https://stackoverflow.com/questions/13249375/sql-azure-doesnt-support-sqlcachedependency-is-there-any-replacement-for-that

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!