How to "cache" persistent settings in asp.net application
<p>i'm developing an asp.net application. In my database i've a "classic" mono-record settings table. 
Each time i need a setting, i write some code like this</p>

<pre><code>if ReturnSetting("my_setting") = value then
'do something
else
'do others
end if
</code></pre>

<p>In 'ReturnSetting' i open a connection, get the setting value and return it. 
This is not efficient (open connection, datareader etc.) </p>

<p>How can i optimize this ? </p>

<p>Thank you</p>
