Currently, I have my Azure Cache configuration
<dataCacheClients>
<dataCacheClient name="default">
...
inside my Web.config of my Azure WebRole. I would like to be able to easily modify the Azure Cache settings after the cspkg package has been created, i.e. I would like to move the configuration into the cscfg file.
I don't think that's possible without hand-coding all the possible configuration options of Azure Caches (and then interpreting those options and setting the configuration programmatically in the DataCacheFactory). Am I overlooking something?
in webrole
(RoleEntryPoint derived class)
onstart, you could overwriteweb.config
caching part with the relevant settings from your.cscfg
filealso add eventhandler to the environment changing
(RoleEnvironment.Changing += RoleEnvironmentChanging;)
withe.Cancel = true
so that the webrole restarts when ever you change.cscfg
@ the management portal