Is there any difference between Sliding-time expiry andAbsolute time expiry?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • satyanarayan sahoo

    Is there any difference between Sliding-time expiry andAbsolute time expiry?

    Give an example !
  • Marc Gravell

    #2
    Re: Is there any difference between Sliding-time expiry and Absolutetime expiry?

    OK; just noticed all your other posts... what is this? homework? interview?

    Marc

    Comment

    • Alberto Poblacion

      #3
      Re: Is there any difference between Sliding-time expiry and Absolute time expiry?

      "satyanaray an sahoo" wrote in message
      news:2008519122 59sahoo.satya19 84@gmail.com...
      [Is there any difference between Sliding-time expiry and Absolute time
      expiry?]
      I assume that you are talking about the Cache.Insert method for ASP.Net web
      pages.
      Both expiration times establish a time after which the cache entry will be
      invalidated (although it could be invalidated before that time if the server
      needs the memory for other purposes). The difference is that the sliding
      expiration is cleared after every access to that cache variable, so that,
      for example, if you set the sliding expiration to 10 minutes, the cache will
      only expire when 10 minutes pass without anyone accessing the web page that
      uses that cache entry. On the other hand, the absolute expiration time is,
      well, "absolute", meaning that the entry will always expire when that time
      comes, regardless of wether it has been used in the meantime or not.


      Comment

      Working...