Cache or HttpApplicationState

Discussion in 'ASP .Net Web Services' started by Brian, Oct 18, 2005.

  1. Brian

    Brian Guest

    Hopefully someone can clear this up for me.

    Is "Context.Cache.Insert(....)" cached per worker process? So if I have a
    webservice and we up the process to something like 5, does that mean that
    there will be 5 copies of the same object in memory?

    I have something crucial that I need to keep in cache, but there can only be
    one version of it, and all the processes must use the same object.
    In this case, would it be a good idea to use the
    "HttpContext.Current.Application.Set(...)"?

    I believe this is the case in web applications, but I have never seen this
    issue addressed in web services. Is this even an issue?
     
    Brian, Oct 18, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Nokes

    Cache::Cache Stale Segments

    Jeff Nokes, Sep 30, 2003, in forum: Perl
    Replies:
    0
    Views:
    773
    Jeff Nokes
    Sep 30, 2003
  2. Rajesh.V

    HttpApplicationState question..

    Rajesh.V, Jan 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    608
    Paul Glavich
    Jan 7, 2004
  3. DesignerX

    Page.Cache vs HttpContext.Current.Cache

    DesignerX, Jan 20, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    8,534
    vMike
    Jan 20, 2004
  4. Natan
    Replies:
    5
    Views:
    1,810
    Natan
    Sep 27, 2004
  5. moi
    Replies:
    2
    Views:
    747
  6. mnowosad

    HttpApplicationState data being lost

    mnowosad, Sep 16, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    913
    Guest
    Sep 17, 2008
  7. Ajay Choudhary

    Accessing HttpApplicationState object from SoapExtension

    Ajay Choudhary, May 16, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    244
    Brock Allen
    May 18, 2005
  8. nano2k

    HttpApplicationState and lock() question

    nano2k, Sep 13, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    323
    nano2k
    Sep 13, 2007
Loading...