Non-singleton CacheManager objects?

Topics: Caching Application Block
Jul 10, 2007 at 12: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?

thanks!
Jul 10, 2007 at 6:19 PM
Hi,

You could do

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

instead of doing the usual

CacheFactory.GetCacheManager()

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