J
Jordan S.
Using .NET 3.5... When I add an item to the system Cache, like this:
HttpRuntime.Cache["someString"] = "Some string";
For how long will it remain in the Cache by default. Could it remain there,
theoretically, forever?
I do understand that the system can purge items from the Cache at any time,
and that I have options to set absolute and sliding expirations as well as
cache item priority. But what happens if I explicitly set NONE of those
things? Does ASP.NET provide the entry with a default absolute expiration of
say Y minutes, or a default sliding expiration of X minutes? Or is it "just
there" with no absolute or sliding expiration, and will remain in the Cache
until the system decides to purge it which, for all we know could be 1
minute or 18 hours, for example, later?
Thanks.
HttpRuntime.Cache["someString"] = "Some string";
For how long will it remain in the Cache by default. Could it remain there,
theoretically, forever?
I do understand that the system can purge items from the Cache at any time,
and that I have options to set absolute and sliding expirations as well as
cache item priority. But what happens if I explicitly set NONE of those
things? Does ASP.NET provide the entry with a default absolute expiration of
say Y minutes, or a default sliding expiration of X minutes? Or is it "just
there" with no absolute or sliding expiration, and will remain in the Cache
until the system decides to purge it which, for all we know could be 1
minute or 18 hours, for example, later?
Thanks.