So I was wondering if it was possible to use both Azure Shared caching and the new co-located cache for a web role? I want to store session state in the old Azure Shared Cache to preserve session state between deployments of the application using VIP swap. I would like to use the new co-located cache for caching values in-memory that are accessed quite frequently but are not changed often in the database, therefore making them ideal to cache with the new co-located cache and notifications.
I do not think it is possible to get both to work. It seems that one version of caching requires the 101.0.0.0 versions of Microsoft.ApplicationServer.Caching and Microsoft.Web.DistributedCache, while the other requires the 1.0.0.0 versions. This can be verified by installing the different nuget packages for Azure Caching and Azure Shared Caching. If someone does know how to get both running, please post a solution here.
I've migrated my session data to Azure SQL using the Microsoft ASP.NET Universal Providers and added the distributed cache to the project instead of using both caching methods.