Should I reuse *redis.Client or defer client.Close() every time? #2747
Unanswered
ah-its-andy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed redis.NewClient() will create a new connection pool in *redis.Client instance. And there is so many goroutine created by
pool.go:449
. I am wondering reuse *redis.Client more efficient ?Beta Was this translation helpful? Give feedback.
All reactions