possible to scope a cached item just to a session?

  • Thread starter Thread starter PJ6
  • Start date Start date
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
 
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.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top