absolute expiration cache object - can it be manually removed ?
Posted
by Truegilly
on Stack Overflow
See other posts from Stack Overflow
or by Truegilly
Published on 2010-04-22T16:40:10Z
Indexed on
2010/04/22
16:43 UTC
Read the original article
Hit count: 155
Hello,
been pulling my hair out over this for the past few hours.
i have a cache object..
HttpRuntime.Cache.Insert("Members", AllMembersList, null, DateTime.Now.AddHours(1), TimeSpan.Zero);
when i try and clear the cache object..
HttpRuntime.Cache.Remove("Members");
its value doesnt change, untill 1 hour is up or when i reset the server.
My question.. for a cache object that is set absolute expiration, can i manually clear it or will it exist for the full hour ?
what i would like is this object to last for an hour but depending on program execution be able to clear it so it will contain fresh data.
any help is most appreciated
truegilly
© Stack Overflow or respective owner