WithRedisAuth sets Redis authentication
(password string, db int)
| 20 | |
| 21 | // WithRedisAuth sets Redis authentication |
| 22 | func WithRedisAuth(password string, db int) RedisOption { |
| 23 | return func(config *store.RedisConfig) { |
| 24 | config.Password = password |
| 25 | config.DB = db |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // WithRedisCache configures client-side cache |
| 30 | func WithRedisCache(size int, ttl time.Duration) RedisOption { |
no outgoing calls
searching dependent graphs…