Give an example !
Is there any difference between Sliding-time expiry andAbsolute time expiry?
Collapse
This topic is closed.
X
X
-
satyanarayan sahooTags: None -
Marc Gravell
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
-
Alberto Poblacion
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...I assume that you are talking about the Cache.Insert method for ASP.Net web[Is there any difference between Sliding-time expiry and Absolute time
expiry?]
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
Comment