title: Static caches in web services
body: <p>Is this the right way to initialize a static cache object in a web service?</p>
  
  <pre><code>public class someclass{
   private static Cache cache;
   static someclass()
      {
          cache = HttpContext.Current.Cache;
      }
  }
  </code></pre>
  
  <p>More Info:</p>
  
  <pre><code>Seems like I receive more then one cache object from webservice. It creates a new request that only lasts for the duration of that call. If I move to a different machine, it creates a new request (and I think a webservice ) object that returns new cache. (because I can see two different caches being returned in the sniffer) By forcing it to be static I was hoping to have only one. However no avail. doesn't work.
  </code></pre>