Re: Cache to store persistent application's variables
From: NWx (test_at_test.com)
Date: 02/19/04
- Next message: Maximus: "Re: permissions"
- Previous message: Hai Nguyen: "HTTP vs HTTPS"
- In reply to: Patrice Scribe: "Re: Cache to store persistent application's variables"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 22:07:08 +0200
Hi,
Your suggestion about packing saving / restoring to a class is great. I'll
use it, thnaks.
Regards
"Patrice Scribe" <nobody@nowhere.com> wrote in message
news:e7Klnrx9DHA.2404@TK2MSFTNGP11.phx.gbl...
> Small user specific values are probably better stored in the session
object.
> I would use the cache for more broader used values (application wide). In
> particular I believe that when storing in the cache you should be always
> prepared for cache misses (under low memory condition, I believe even
> "permanent" items may be destroyed. Can someone confirm this ?
>
> In any case you may want to provide a class that store/retrieve these
> values, this way you'll be easily able to change the underlying storage
for
> these values (plus type safety, intellisence for user settings etc...)
>
> Patrice
>
> --
>
> "NWx" <test@test.com> a écrit dans le message de
> news:%23oBlU3w9DHA.1816@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > Is Cache appropriate to store persistent variables used across the
> > application? What I want is to store UserID for currently logged user,
> > SessionID (my own SessionID, which keep track of datetime for login and
> > logout as well as other info, like Client IP , etc)
> >
> > My objects I want store to cache are not set-up to expire.
> >
> > Or should I store them better in Session storage?
> >
> > Regards
> >
> >
>
- Next message: Maximus: "Re: permissions"
- Previous message: Hai Nguyen: "HTTP vs HTTPS"
- In reply to: Patrice Scribe: "Re: Cache to store persistent application's variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|