.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 19th, 2006, 10:16 AM
SimonJoseph SimonJoseph is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 2 SimonJoseph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 16 sec
Reputation Power: 0
Question Help!! ASP .NET Cache

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.

Reply With Quote
  #2  
Old April 21st, 2006, 06:06 AM
RidleyHoug RidleyHoug is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 3 RidleyHoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 19 sec
Reputation Power: 0
Post Use Distributed caching product

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.

Reply With Quote
  #3  
Old April 24th, 2006, 06:14 AM
ScottHilton ScottHilton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 2 ScottHilton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 44 sec
Reputation Power: 0
Do more research on ASP .NET 2.0 Cache

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.

Reply With Quote
  #4  
Old April 27th, 2006, 06:37 AM
RidleyHoug RidleyHoug is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 3 RidleyHoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 19 sec
Reputation Power: 0
How ASP .NET 2.0 Cache is better?

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?

Quote:
Originally Posted by ScottHilton
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Help!! ASP .NET Cache


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap