accessing the Cache in non-Page class

Discussion in 'ASP .Net' started by sklett, Jan 30, 2004.

  1. sklett

    sklett Guest

    I have a DAL class and in the class I would like to add items to the Cache.
    I have tried to include System.Web.Cachining, but I still get a compile
    error stating that the name "Cache" does not exist in the current namespace,
    blah, blah.

    I don't understand how to access the Cache from non- UI.Page classes. Is it
    possible?

    Thanks-
    Steve
    sklett, Jan 30, 2004
    #1
    1. Advertising

  2. sklett

    sklett Guest

    I see how to get it, HttpContext.Current

    please disregard
    "sklett" <> wrote in message
    news:%...
    > I have a DAL class and in the class I would like to add items to the

    Cache.
    > I have tried to include System.Web.Cachining, but I still get a compile
    > error stating that the name "Cache" does not exist in the current

    namespace,
    > blah, blah.
    >
    > I don't understand how to access the Cache from non- UI.Page classes. Is

    it
    > possible?
    >
    > Thanks-
    > Steve
    >
    >
    sklett, Jan 30, 2004
    #2
    1. Advertising

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:
    556
    Jeff Nokes
    Sep 30, 2003
  2. DesignerX

    Page.Cache vs HttpContext.Current.Cache

    DesignerX, Jan 20, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    8,224
    vMike
    Jan 20, 2004
  3. Ryan

    Non persistent page cache

    Ryan, Jan 21, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    404
    Paul Glavich
    Jan 21, 2004
  4. =?Utf-8?B?b25l?=
    Replies:
    1
    Views:
    5,267
    Karl Seguin [MVP]
    Mar 8, 2006
  5. John
    Replies:
    2
    Views:
    1,171
Loading...

Share This Page