ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help required, ASP .NET Cache

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
PeterMoris



Joined: 19 Apr 2006
Posts: 1

PostPosted: Wed Apr 19, 2006 9:39 am    Post subject: Help required, ASP .NET Cache Reply with quote

Iím currently working on a distributed application that requires cluster wide caching support for its operation. Since ASP.NET Cache does not work in clustered environment, I was thinking to code my own custom caching solution and confronted some issues in providing cache synchronization. Please advise how to add/change a Cache item that is added/changed in one of the Appdomains. Also, how to remove/expire a Cache item that has been removed/expired in one of the AppDomains.
Back to top
View user's profile Send private message
ScottHilton



Joined: 21 Apr 2006
Posts: 2

PostPosted: Fri Apr 21, 2006 5:42 am    Post subject: Use a Distributed Caching product Reply with quote

I would suggest you to use an already available commercial solution for clustered cache just like NCache from www.alachisoft.com. It is my personal experience that building a custom cache solution for clustered environment is not feasible. This is because developing a clustered caching solution requires a lot of effort and expertise. Handling concurrency and synchronization requires thorough and extensive testing and still your application can crash with a small bug that you may overlook at first. This ends up in delayed schedule and obviously an unhappy client.
Back to top
View user's profile Send private message
JohnSeana



Joined: 24 Apr 2006
Posts: 1

PostPosted: Mon Apr 24, 2006 6:00 am    Post subject: Explore ASP .NET 2.0 Cache Reply with quote

The Microsoft .NET Framework version 2.0 includes significant enhancements to ASP.NET in virtually all areas including Caching. Features such as configurable caching and SQL cache invalidation allow you to optimize the performance of your applications greatly.
With the introduction of database-triggered cache invalidation, now you can remove or invalidate an item from the cache when data in a SQL Server database changes. The database-triggered cache invalidation capability allows you to ensure that items in the cache are kept up to date with the changes in the database. ASP.NET 2.0 also provides you more control over the cached data by enabling you to set caching attributes at the SqlDataSource control level.
Now you can create custom cache dependencies by inheriting from the CacheDependency class which is no more a sealed class in ASP.NET 2.0. This make it easy to create your own custom cache dependencies required for a particular scenario. Also now you can be notified when an item is removed from the application cache. This way you can perform the required operation immediately.
Back to top
View user's profile Send private message
ScottHilton



Joined: 21 Apr 2006
Posts: 2

PostPosted: Thu Apr 27, 2006 6:07 am    Post subject: Re: Explore ASP .NET 2.0 Cache Reply with quote

JohnSeana wrote:
The Microsoft .NET Framework version 2.0 includes significant enhancements to ASP.NET in virtually all areas including Caching. Features such as configurable caching and SQL cache invalidation allow you to optimize the performance of your applications greatly.
With the introduction of database-triggered cache invalidation, now you can remove or invalidate an item from the cache when data in a SQL Server database changes. The database-triggered cache invalidation capability allows you to ensure that items in the cache are kept up to date with the changes in the database. ASP.NET 2.0 also provides you more control over the cached data by enabling you to set caching attributes at the SqlDataSource control level.
Now you can create custom cache dependencies by inheriting from the CacheDependency class which is no more a sealed class in ASP.NET 2.0. This make it easy to create your own custom cache dependencies required for a particular scenario. Also now you can be notified when an item is removed from the application cache. This way you can perform the required operation immediately.


How ASP .NET 2.0 Cache is better than the ASP .NET 1.1 Cache? A usual problem with ASP .NET 2.0 Cache is that sometimes Cache.Insert() method fails to insert the data into the cache and raises a null reference exception. What would you say about this?
Back to top
View user's profile Send private message
rose



Joined: 21 Feb 2006
Posts: 29

PostPosted: Mon May 01, 2006 5:12 pm    Post subject: Reply with quote

So 2.0 has cache problems that 1.1 doesnt have?
Hmm, thats strange. You'd think they would improve it, not make it worse.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial