Caching block: user

Topics: Caching Application Block
May 10, 2010 at 3:09 PM
Is the caching block user access or application avaiable? I want to use the caching block to cache datasets for users. do not want the cache to be visible when another user accesses the page. If the caching block does not work for this, what other ways are there?
May 11, 2010 at 7:54 AM
Edited May 11, 2010 at 2:48 PM

If you're using null storage (the default one), Caching Application block uses an in-memory cache, that is per AppDomain only.  If the user access on a different machine, they won't share the same cache.  It can't also be shared in different processes.  Only in the case where a browser is open and have multiple tabs using your app and each have different users logged in, they will share the same cache.  If you anticipate that this will be a common or possible scenario, you can use session-based keys.  Prefix your cache item keys with the current session id.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.