| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package infrastructures |
||
| 34 | func NewRedisClient() *redis.Client { |
||
| 35 | redisHost := config.RedisHost |
||
| 36 | |||
| 37 | client := redis.NewClient(&redis.Options{ |
||
| 38 | Addr: redisHost, |
||
| 39 | MinIdleConns: config.RedisMinIdleConns, |
||
| 40 | PoolSize: config.RedisPoolSize, |
||
| 41 | PoolTimeout: config.RedisPoolTimeout, |
||
| 42 | }) |
||
| 43 | |||
| 44 | return client |
||
| 45 | } |
||
| 46 |