473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

System Cache - duration

Just wondering if data that is stored in the system Cache
(System.Web.Caching.Cache) can theoretically stay in the Cache until the
application is restarted. I understand that the system can purge the data in
the Cache at any time... but what is likely to happen on a system that is
not very busy and makes few demands on system resources. Can it be
considered as likely that the data stored in the Cache will be there for a
very long time (hours or all day)?

I'm just wondering more for informational purposes as opposed to solving any
particular problem.

Thanks.

Jun 27 '08 #1
2 1073
There are overloads with the Priority enumeration where you can actually
specify that the cache item will not be evicted (unless the app recycles, in
which case Cache, Application and Session all go bye-bye)
Peter
"Jordan S." <A@B.comwrote in message
news:u7*************@TK2MSFTNGP05.phx.gbl...
Just wondering if data that is stored in the system Cache
(System.Web.Caching.Cache) can theoretically stay in the Cache until the
application is restarted. I understand that the system can purge the data
in the Cache at any time... but what is likely to happen on a system that
is not very busy and makes few demands on system resources. Can it be
considered as likely that the data stored in the Cache will be there for a
very long time (hours or all day)?

I'm just wondering more for informational purposes as opposed to solving
any particular problem.

Thanks.

Jun 27 '08 #2
Hello Jordan S.,

use CacheItemPriority.NotRemovable as property of cache object

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
JJust wondering if data that is stored in the system Cache
J(System.Web.Caching.Cache) can theoretically stay in the Cache until
Jthe application is restarted. I understand that the system can purge
Jthe data in the Cache at any time... but what is likely to happen on
Ja system that is not very busy and makes few demands on system
Jresources. Can it be considered as likely that the data stored in the
JCache will be there for a very long time (hours or all day)?
J>
JI'm just wondering more for informational purposes as opposed to
Jsolving any particular problem.
J>
JThanks.
J>
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: A.M | last post by:
Hi, How can I change the duration of user control's cache inside asp.net's C# code? Any help would be apprecited, Alan
3
by: James | last post by:
If I have set the session state for an asp.net application to be out of process how does this affect the HttpContext.Cache? What I want to know it is possible to store the Cache out of process as...
5
by: Daniel Walzenbach | last post by:
Hi, I need to cache infrequently changed data used by the entire application. Does anybody know whether using Application state (Application = somevalue;) or the Cache API (Cache.Insert) is...
7
by: Juris Krumins | last post by:
I have a problem with postgresql tables. periodicaly, I would say frequently about 5-10 time per hour i have such errors in my server log file: 2004-04-14 12:23:32 ERROR: cache lookup of...
2
by: jack | last post by:
Now here i have a doubt the explorer maintains the cache for 300 seconds when the code is in html code like the one which is below :- <%@ OutputCache Duration="300" VaryByParam="none" %> But...
0
by: SharpSmith | last post by:
hi i have a strange problem with OutPut cache working fine on development box and not working on production server background : @outputCahce directive is fine, but wanted to make centralized...
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
0
by: nidhidshah | last post by:
Hi, I would like to know ways of editing the cache duration. I do not know how long the server cache would be persistant. My server has got IIS 6.0 and somebody told me that i can achieve that by...
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.