title: Using HttpContext.Current.Application to store simple data
body: <p>I want to store a small list of a simple object (containing three strings) in my ASP.NET MVC application. The list is loaded from the database and it is updated rarely by editing some values in the site's admin area.</p>
  
  <p>I'm thinking of using <code>HttpContext.Current.Application</code> to store it. This way I can load it in the Global.asax:</p>
  
  <pre><code>protected void Application_Start()
  {
      RegisterRoutes(RouteTable.Routes);
  
      HttpContext.Current.Application["myObject"] = loadDataFromSql(); // returns my object
  }
  </code></pre>
  
  <p>And then can easily reference it from any controllers or views as needed. Then in the event, the admin area calls the <code>updateMyObject</code> controller action, I can just update the DB and load it in again and replace <code>HttpContext.Current.Application["myObject"]</code>.</p>
  
  <p>Are there any cons to doing this? It seems like it will work fine for what I am trying to achieve, however does anyone know of a better way to do this, assuming there is some major disadvantage to the method I've laid out?</p>