Error message: "redis: connection pool timeout" #1916
Unanswered
hongfangao
asked this question in
Q&A
Replies: 1 comment
-
See https://redis.uptrace.dev/guide/performance.html#redis-connection-pool-timeout
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, at the time when I start my server, the connection to redis is OK, but after a period of time(the redis server is not operated), the request to redis will be error, and the error message is "redis: connection pool timeout". So can you help me find what's wrong with my project?
I used the redis object as follows:
I guess that I should use as follows, but not sure:
Can you help me?
=================
Another problem is that: why "myClient.Get("key")" and "myClient.Conn().Get("key")" are both legal? What's the difference of them?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions