I have a .NET application in Azure that uses Redis as cache through CacheManager. Application uses deployment slots. I want to have different Redis database IDs for different slots. Test/Staging/Prod slots use Redis databaseId 0/1/2.
Is it anyhow possible to set the databaseId programmatically in CacheManager while keeping the rest of the configuration (IP, port, ssl, key etc) in web.config file? Only the database number vary and it is stored in Azure appSetting for every slot.