-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Hi,
Feel free to delete this post if you believe it is not the correct place to post this. I am trying to use Redis Cache with Azure Functions.
I keep getting the following error: No connection is available to service this operation: HGET
I have tried using a static lazy connection or a connection per request. Almost all my calls get this error. I am using latest StackExchange.Redis for .Net 4.7. I am only sending a single message to Azure Functions so its not a matter of load and connection limit.
What I have also noticed is that the Save most of the time works, its always the Get that is failing(executing Save first then Get after using the same RedisCacheHelper instance with a static lazy loaded connection inside) Any idea what it might be?
Just some more info:
Azure Function v1
I am initializing my connection like this:
The above class I am only initializing once in the ctor of the Azure Function and re-using it so only 1 instance of this class exists.
I am calling the RedisCache like this:
AppInsight Logs: