Just cross-posting this from stackoverflow 
<http://stackoverflow.com/questions/41077942/relation-between-pooltimeout-idletimeout-idlecheckfrequency-in-go-redis>

Can someone let me know the relation between PoolTimeout 
<https://github.com/go-redis/redis/blob/854c88a72c8bb9c09936145aef886b7697d6b995/options.go#L54>
, IdleTimeout 
<https://github.com/go-redis/redis/blob/854c88a72c8bb9c09936145aef886b7697d6b995/options.go#L58>
 & IdleCheckFrequency 
<https://github.com/go-redis/redis/blob/854c88a72c8bb9c09936145aef886b7697d6b995/options.go#L62>
 in go-redis <https://github.com/go-redis/redis>?

Doubts:-

   1. If I specify PoolTimeout 20ms, IdleTimeout 20ms, PoolSize 100 & 
   IdleCheckFrequency 1 min. Let's say all the connection in the pool are 
   used and a connection finishes its operation. Then will the request for a 
   new connection wait till the IdleCheck is run in 1 min interval?
   2. If I specify PoolSize 100 will the client keep open 100 connections 
   to redis even if there is no active client operation being performed to 
   Redis?

Environment:-

   1. Go - 1.7.4
   2. Redis - 3.2.6
   3. Go-Redis - v5.2

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to