How to set the override the redis host name for different environments in Azure web role project? -
azure redis cache:
i implementing redis cache maintaining session state our site. our site azure web role project , configurations in *.cscfg files different environments. wondering how can set host different values different environments. example sample-int.redis.cache.windows.net, sample-test.redis.cache.windows.net, sample.redis.cache.windows.net , able use other attributes web.config file:
<sessionstate timeout="5760" mode="custom" customprovider="mysessionstatestore"> <providers> <add name="mysessionstatestore" type="microsoft.web.redis.redissessionstateprovider" host="sample-int.redis.cache.windows.net" accesskey="r7gduggfxirjlmz5wsq1vacnjaawcjjiixzcan2dswm=" ssl="true" /> </providers> </sessionstate>
i put redis configuration in web.config , per environment transformation files. don't put application settings data in .cscfg files.
Comments
Post a Comment