c# - ASP.net Cacheing - Proper Usage -
I am creating a web application and there is a problem with my caching.
In my application, a large amount of data which I want to try to call from SQL database and I need information all the time.
I have tried to use caching in the following ways:
public static list & lt; DAL.EntityClasses.AccountsEntity & gt; Account {if (HTCTTEXTICT.Catch ["account"] == blank) {HTTPPTCXTC. Cant. ("Account", Load Units (), Empty, Datetime. Now Edwers (4), System Web.Caching.Cache.NoSlidingExpiration); } Return (List & lt; DAL.EntityClasses.AccountsEntity & gt;) HttpContext.Current.Cache ["Account"]; }}
The problem is that it appears that like I am adding item to the cache, the same items that I have already cashed are removed.
Thanks
Large amount of data.
Comments
Post a Comment