make redis max idle a func of concurrency