CacheDependency

Discussion in 'ASP .Net' started by Brian, Dec 20, 2003.

  1. Brian

    Brian Guest

    Hi~

    I use ASP.NET (framework 1.1 and windows 2003 server-)
    Cache works well but it never expires with the
    CacheDependency object and Expire Time Setting.

    In Windows XP, as far as I remember, It really Does Works

    (Code)
    CacheDependency dep=new CacheDependency(Server.MapPath
    ("my.xml"));
    if(Cache["Count"]==null)
    Cache.Insert("Count", 0, dep);

    Cache["Count"] = (int)Cache["Count"] + 1;
     
    Brian, Dec 20, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.