Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 486
vipin katiyar Avatar asked Nov 12 '22 18:11

vipin katiyar


1 Answers

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.

like image 196
Ryan Prechel Avatar answered Nov 15 '22 08:11

Ryan Prechel