I have a separate DAL in my project. At one place i have list of some records and on each request i have to get that records, I am trying to Cache those records so in each susequent request i will get those reocrds from the Cache instead of going to database (in this way i will save database hit).
I tried to cache the DataView object as Cache["SpNames"] = RecordsView;
but at the time of compilation it giving error like The name 'Cache' does not exist in the class or namespace error.
I tried to use using System.Web.Caching; namespace but in DAL (class library its not working ( The type or namespace name 'Caching' does not exist in the lass or namespace 'System.Web' (are you missing an assembly reference?))
Any help will be appreciated.
Thanks
Best regards,
Webmaster
http://www.dotnetfunda.com