IT Community - Software Programming, Web Development and Technical Support

What are the Types of caching in dot net 2005?

This is a discussion on What are the Types of caching in dot net 2005? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, Does your application need the user data to be cached even after the session is closed? If this is ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
  #11  
Old 08-10-2007, 02:16 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 347
Venkat is on a distinguished road
Thumbs up Re: What are the Types of caching in dot net 2005?

Hi,

Does your application need the user data to be cached even after the session is closed? If this is not a case, store data in Session rather than in Cache.
You said that you will be appending the sessionid to the cache item name, which means that the data is not useful once the session is closed. So, storing data in cache unnecessary, as it is application scope increases load at the server. So, rethink about storing data in Cache object. Better store data in Session Object.

You can access data from the database instead of storing it in Session also. But, the tradeoff is between at how many places does you need this data. If it is required at fewer places (<15) for a huge application, then better go for DB every time. But, you need to consider the amount of other data storing in session. Also, consider the number of users accessing your site simulatenously. Because, if you are storing data in session and number of people accessing the site is hight, then you can get memory problems.
__________________
Venkat
knowledge is Power
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 08-14-2007, 02:50 AM
a.deeban a.deeban is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 278
a.deeban is on a distinguished road
Default Re: What are the Types of caching in dot net 2005?

Hi Venkat,

thanks for your reply, i need little clarification on it. I will use the session.
My doubt is where these values will be stored in server and is any difference between these in performance....


thangs again venkat....


thnx....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 08-18-2007, 02:00 AM
a.deeban a.deeban is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 278
a.deeban is on a distinguished road
Default Difference between cache and Session in dot net

Hi venkat,

i got the difference between cache and session and here it is.


Cache: The concept of Caching used in case of Performance Improvement.When web pages do not frequently change we use the concept of caching.All the object stores in the

memory .There are two types of caching 1) output caching 2)Fragment Caching .

it basically reduce the load of web site.

Session: Session object is basically used for Specific User and maintains its state.The

default Timeout is 20 minute but you can reset the time ,you can store any

object in session and also remove it.

Ex: Session["mysession"] = "This is my Session"


thnx...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Explain how Caching in Asp.net 2.0 is different from Caching in Asp.net 1.1? Arun ASP and ASP.NET Programming 6 09-19-2007 09:15 PM
Caching in php abhilashdas PHP Programming 1 08-06-2007 10:42 PM
How many types of authentication modes are there and what are the Types.... Archer ASP and ASP.NET Programming 1 07-25-2007 02:48 AM
How caching will help to improve the performance of asp .net application? kingmaker ASP and ASP.NET Programming 1 07-20-2007 05:32 AM
ASP Caching nhoj ASP and ASP.NET Programming 0 04-09-2007 08:12 AM


All times are GMT -7. The time now is 12:53 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0