You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can a client be used from multiple goroutines concurrently ?
Also, to get the max out of redis, would you recommend to have multiple clients, or to set a higher pool size ?
The text was updated successfully, but these errors were encountered:
Can a client be used from multiple goroutines concurrently ?
Yes, *redis.Client is thread-safe, but *redis.Multi, *redis.Pipeline and *redis.PubSub are not (because I think that there is no compelling reasons to make them thread-safe).
would you recommend to have multiple clients, or to set a higher pool size ?
Definitely bigger pool, though default pool size (10 connections) is big enough for most use cases.
Can a client be used from multiple goroutines concurrently ?
Yes, *redis.Client is thread-safe, but *redis.Multi, *redis.Pipeline and *redis.PubSub are not (because I think that there is no compelling reasons to make them thread-safe).
would you recommend to have multiple clients, or to set a higher pool size ?
Definitely bigger pool, though default pool size (10 connections) is big enough for most use cases.
Hi,
Can a client be used from multiple goroutines concurrently ?
Also, to get the max out of redis, would you recommend to have multiple clients, or to set a higher pool size ?
The text was updated successfully, but these errors were encountered: