WithRedisPool configures connection pool
(poolSize int, maxIdleTime, maxLifetime time.Duration)
| 36 | |
| 37 | // WithRedisPool configures connection pool |
| 38 | func WithRedisPool(poolSize int, maxIdleTime, maxLifetime time.Duration) RedisOption { |
| 39 | return func(config *store.RedisConfig) { |
| 40 | config.PoolSize = poolSize |
| 41 | config.ConnMaxIdleTime = maxIdleTime |
| 42 | config.ConnMaxLifetime = maxLifetime |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // WithRedisKeyPrefix sets the key prefix |
| 47 | func WithRedisKeyPrefix(prefix string) RedisOption { |
no outgoing calls
searching dependent graphs…