Hello,
We are migrating our redis instance from V4 to V6 , after the migration we want to switch the provider from old to new. Is there any way where i can dynamically swich between the rovider based in a flag ?
https://www.nuget.org/packages/Microsoft.Web.RedisSessionStateProvider/
Ex:
<sessionState mode="Custom" cookieless="UseCookies" regenerateExpiredSessionId="true" timeout="245" cookieName="DESKTOPSESSION" cookieSameSite="None" customProvider="Dmc.WebService.CustomSessionStateProvider">
<providers>
<add name="RedisNew" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionStringNew="redisnew.redis.cache.windows.net:6380,password=fafafvdf=,ssl=True,sslProtocols=Tls12,abortConnect=False" throwOnError="false" operationTimeoutInMilliseconds="5000" retryTimeoutInMilliseconds="8000" connectionTimeoutInMilliseconds="10000" />
<add name="RedisOld" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString="redisold.redis.cache.windows.net:6380,password=fdfafggegge=,ssl=True,sslProtocols=Tls12,abortConnect=False" throwOnError="false" operationTimeoutInMilliseconds="5000" retryTimeoutInMilliseconds="8000" connectionTimeoutInMilliseconds="10000" />
</providers>
</sessionState>
Based on a flag we want to swich from old to new at runtime without restartign the app