Re: Cache to store persistent application's variables

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: NWx (test_at_test.com)
Date: 02/19/04


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
> >
> >
>



Relevant Pages

  • Re: Rows returned are out of sync with the request.
    ... ('driver_connection' from cache) ... <- STORE= 1 at SQLRelay.pm line 145 ... However I suspect the signal was not delivered until the execute completed. ... Can $sth ever be already defined here? ...
    (perl.dbi.users)
  • Re: issue in sending mail by exchange account
    ... So, if it goes though the cache, it will stack up in the outbox. ... Can you please tell me how can I send by exchange account in online mode through an existing profile in which exchange account is not the default one and neither its store is default? ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Query or Array functions
    ... table using a SQL query, I doubt that using a file to store a serialized ... you can DO it in the database with a salting of joins ... cache and accessible for very little overhead. ...
    (comp.lang.php)
  • Re: PowerBasic rocks!
    ... is likely to be the process of getting the data out of memory and back ... into memory - two fetches and one store - where the Harvard ... - cache memory for the data doesn't help for this particular task.. ... and you get burst mode transfers that multiply the effect. ...
    (sci.electronics.design)
  • Re: AMD Bulldozer optimization guide
    ... p. 21 - a single macro-op can handle load and store to the same address, whereas micro-ops can only be load and store. ... L3$ - non-inclusive victim cache ... p. 80 - load-execute instructions are preferred over separate load and execute instructions. ...
    (comp.arch)