Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8040217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:49:29+00:00 2026-06-05T03:49:29+00:00

EDIT: This is not a question on how I can programatically set expiration. I

  • 0

EDIT: This is not a question on how I can programatically set expiration. I am fully versed in absolute, sliding, and dependency expiration.

When an item is stored in the ASP.NET cache, is there some known algorithm used by ASP.NET to determine when that item will be removed?

I don’t mean if it’s been invalidated (say by use of SqlCacheDependency notification), but rather some element that got loaded and cached and then hasn’t been touched/read in hours or days… or even minutes but on a server where cache memory is in constant demand… is there some published information on how IIS or ASP.NET decide when idle data should be wiped out?

I ask because my boss is thinking that maybe we can out-think IIS, and force nightly pre-loads of data into the cache that we think will be likely to be needed. I think this is a futile effort likely to put us in competition with the real needs of the app – so I’m looking for some hard material that validates or disproves my thinking.

TIA
G

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:49:31+00:00Added an answer on June 5, 2026 at 3:49 am

    Cache has to be cleaned from time to time in order to ensure that there is a place to store new items. Data from cache can also be removed when the time when the item is valid has expired or when dependencies have changed. Dependency can be for example a database – then when there were some changes in database the item that depends on this database is removed from cache.

    There are two mechanisms that clear data stored in cache:

    Scavenging – when there is not enough free space in cache ASP.NET looks for items which haven’t been recently used and for items with low priority. Then it deletes selected items and stores new items in cache.

    Expiring – data for which time when they are valid has passed is also removed. Expiration times can be absolute – when data is valid for a specific period of time and they can also be so called “sliding” when time is counted always from the beginning from the last use

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is clearly not the case though. My JS : $(.job_charge.item-block).live({ mouseenter: function(){ $(this).find('.edit-and-delete').stop(true,true).fadeIn();
This works: Entities.WorkOrderSet.Where(MyCustomMethod); This does not: Entities.WorkOrderSet.Where(o => MyCustomMethod(o)); ( [Edit] Even without new
[edit] I am NOT using jquery in this app. Looking for a way to
edit: I'm not looking for you to debug this code. If you are familiar
I'm not sure what kind of terminology to use in this so please edit
Not entirely sure of a good title for this, feel free to edit it
Edit This question has gone through a few iterations by now, so feel free
EDIT: This question is a duplicate of What is the difference between managed and
I've build a custom SharePoint list that programatically adjusts permissions per list item. This
How can I programatically analyze a native DLL to read its imports? [EDIT: my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.