Data Cache problem

Last post 08-08-2007 11:20 AM by gunteman. 1 replies.

Sort Posts:

  • Data Cache problem

    08-08-2007, 10:56 AM
    • Member
      191 point Member
    • rturner003
    • Member since 07-31-2003, 2:13 AM
    • Cheltenham, UK
    • Posts 41
    I am developing a asp.net (2.0) application which uses data caching to save data until the user completes all the tasks. I am using the following commands:         Cache.Insert("Allocations" + strCacheNo, dtAllocations, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(60), CacheItemPriority.High, null);        Cache.Insert("Postings" + strCacheNo, dtPosting, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(60), CacheItemPriority.High, null); dtAllocations and dtPostings are .net data tables. On my development laptop this works fine, I can load the data, add to it and re cache it no problems. When I loaded it on the test PC it doesn’t appear to cache at all. Any ideas on what my problem is?

     

  • Re: Data Cache problem

    08-08-2007, 11:20 AM
    Answer
    • All-Star
      21,648 point All-Star
    • gunteman
    • Member since 07-11-2007, 8:57 AM
    • Norrköping, Sweden
    • Posts 3,177

     If you want to trust that the object isn't removed, you should use Session or CacheItemPriority.NotRemovable

    -- "Mark As Answer" if my reply helped you --
Page 1 of 1 (2 items)