i am implementing Azure Redis Cache to solve session issue for my Azure hosted application below is the code i written.
do we need to do any confiuration changes for Redis in Azure portal.
please help.
i am implementing Azure Redis Cache to solve session issue for my Azure hosted application below is the code i written.
do we need to do any confiuration changes for Redis in Azure portal.
please help.
2
Answers
the same error i got, and the status of redis is running, added images for reference
i have added my IP also in the Redis Firewall.
did i need to do any thing more Gong.
I did some test on my side and this is my test console app code :
Result :
Seems everything works as excepted. I got the same error in the beginning:
It is due to Azure Redis service has not been created yet. it will take several minutes to finish this process. You can check its status here :
When its status is Running, you can try to connect to it.
In the whole process, I have no additional configs for my Redis service,all I have done is: create Redis=>wait it be created => find the connection string => connect to it by code.
Actually I configed nothing on my Redis. Everything works for me. I am not sure if it is related to the version of
StackExchange.Redis
, some people get this error when using 2.xx version and when they get back to 1.2.6, this issue is no longer appears . You can have a try. Hope it helps.