WithRedisCache configures client-side cache
(size int, ttl time.Duration)
| 28 | |
| 29 | // WithRedisCache configures client-side cache |
| 30 | func WithRedisCache(size int, ttl time.Duration) RedisOption { |
| 31 | return func(config *store.RedisConfig) { |
| 32 | config.CacheSize = size |
| 33 | config.CacheTTL = ttl |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // WithRedisPool configures connection pool |
| 38 | func WithRedisPool(poolSize int, maxIdleTime, maxLifetime time.Duration) RedisOption { |
no outgoing calls
searching dependent graphs…