title: Persist Local Configuration Data in SharePoint
body: <p>I have a piece of data, a simple string containing the server name that the SharePoint solution is deployed to, that I retrieve from a configuration store in a helper method in a common DLL used throughout my solution.  This helper method is used throughout my custom pages and web parts, to build a number of URLs, etc.  </p>
  
  <p>I would like to persist this string, and prevent it being repeatedly retrieved from the configuration store.  My Sharepoint installation is currently on a single server, but will be migrated to a SharePoint server farm in the near future, so simply determining the server name of the current request, etc isn't an option.  I have looked at caching as described in the <a href="http://msdn.microsoft.com/en-us/library/bb687949.aspx" rel="nofollow noreferrer">best practices for SharePoint</a>, but unless I use a coherent cache like <a href="http://www.alachisoft.com/ncache/" rel="nofollow noreferrer">NCache</a> or <a href="http://msdn.microsoft.com/en-us/data/cc655792.aspx" rel="nofollow noreferrer">Velocity/AppFrabric</a>, I will again have issues when the move to server farm occurs.  Given that this is a single string, adding a full caching solution such as Velocity seems like overkill.</p>
  
  <p>Does anyone have any suggestions on the best way to persist this data?  Am I missing something obvious here?</p>
  
  <p>Thanks, MagicAndi</p>