I am implemented In-role caching, and my application I want to use both the caches in different scenarios.
Below things are implemented: 1. Web Application - Web Role - Enabled Co-located caching 2. Cache Worker Role - Worker Role - Enabled Dedicated Caching
Now, issue is how to define both of them in Web.config file under DataCacheClients section.
<dataCacheClients>
<dataCacheClient name="default">
<autoDiscover isEnabled="true" identifier=[Web Role Name] />
</dataCacheClient>
</dataCacheClients>
How to define here both the roles together so that I can use them simultaneously in the application?
I know we can add multiple DataCacheClient section, but that is for Named Cache. I think this is different scenario.