Where to store data in order to avoid database hitting?
<p>I am using webmethod which fetches data from database &amp; storing it in a static variable so that next time it will not hit the database becoz the data is being accessed frequently. Creating static variable doesn't seem to be a proper solution what is an alernative to this scenario.</p>

<p>e.g</p>

<pre><code>public static List&lt;SupplierGridData&gt; lstFullSupplierData;

public static List&lt;SupplierGridData&gt; GetProductData()
{
    if (lstFullSupplierData == null)
    {
        //first time get data from database
        lstFullSupplierData = new List&lt;SupplierGridData&gt;();
        lstFullSupplierData  = new POProcess().GetInquiryDetails();
    }
    else
    {
        //use lstFullSupplierData which holds data
    }
}
</code></pre>
