Cache or Application

Posted by Nishithraj under Regular Expressions on 1/26/2010 | Views : 874 | Status : [Member] | Replies : 2
I need to share some data among all the users.

Whether I can use Caching or Application object. Provide your thoughts and explain why you prefer that one?

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan



Responses

Posted by: Rtpharry on: 1/26/2010 [Member] [MVP] Bronze

Up
0
Down
This article compares them both:

http://www.eggheadcafe.com/articles/20030405.asp

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 1/27/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down

You can use either, but I would recommend Application object.

The main difference between the Cache and Application objects is that the Cache objects supports cache-specific features, such as cache expiration policies, dependancy etc.

So if you dont need those elements for your shared object, I think you should use application object, which is simple enough to store objects to all users.

www.abhisheksur.com

Nishithraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response