Non-singleton CacheManager objects?

Topics: Caching Application Block
Jul 10, 2007 at 1:56 AM
I'm trying to set up a web service that will be hit by many different users, and I want to provide a separate cache for each one of those users. Is there a way of doing this without having to specify a separate cache for each of the users in the config file?

Jul 10, 2007 at 7:19 PM

You could do

(new CacheManagerFactory(new SystemConfigurationSource())).CreateDefault()

instead of doing the usual


You would need to manage the singletons for each user though.

All caches would share the same configuration, which might or not be the best in your scenario (think isolated storage).

Hope this helps,