title: C# - Inserting and Removing from Cache
body: <ol>
  <li><p>If I insert to Cache by assigning the value:</p>
  
  <p>Cache["key"] = value;</p>
  
  <p>what's the expiration time?</p></li>
  <li><p>Removing the same value from Cache:  </p>
  
  <p>I want to check if the value is in Cache by <code>if(Cache["key"]!=null)</code>, is it better to    remove it from Cache by <code>Cache.Remove("key")</code> or <code>Cache["key"]=null</code> ?</p></li>
  </ol>
  
  <p><strong>-- Edit --</strong></p>
  
  <p>After having tried <code>Cache.Remove</code> and <code>Cache["key"]=null</code>, DO NOT USE <code>Cache["key"]=null</code>, as it will throw exceptions when used in stress.</p>