possible to scope a cached item just to a session?

P

PJ6

I have a use for cache that is best if only scoped to a particular session.
Is that possible, or should I be using a session variable instead?
Performance is a consideration in this case.

Paul
 
G

Gregory A. Beamer

I have a use for cache that is best if only scoped to a particular
session. Is that possible, or should I be using a session variable
instead? Performance is a consideration in this case.

If you are talking using the built in caching mechanism, but with session
bits thrown in versus session, I would choose session. The perf will be
similar, but the session will clean itself up, while you will have to clean
up your custom session bits.

If you were thinking of velocity when it is RTMed, then custom might be
worth it, as you could swap out bits when it is released. Otherwise,
session is simpler to code for.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top