Difference between HttpRuntime.Cache.Remove and HttpRuntime.Cache.Insert(...,null,....)
<p>I am working with http.cache and I found 2 ways to reset the value of an item in the cache.</p>

<pre><code>a.) cache.remove(&lt;cacheKey&gt;)
b.) cache.Insert(&lt;cacheKey&gt;, null, null, Cache.NoAbsoluteExpiration, new TimeSpan(24, 0, 0));
</code></pre>

<p>The difference i noticed between a and b was that - effect of (a) was immediate, while it took some time for (b) to take effect.  The detailed final effect was different (meaning, the key was removed in a while the value of key was set to null in b) for me, either way was same because in my application I was using:</p>

<pre><code>cache[&lt;cacheKey&gt;]
</code></pre>

<p>May be its worthwhile to mention, that the cache held a dictionary and that accessing there was a try/catch block around the cache[...] when I am trying to get the value.</p>

<p>The question here is why did it take time to reflect (b) and (a) was immediate?</p>
