WithCacheExpiryDuration sets the duration after which the cache is considered expired. By default, the cache is 0 (disabled).
(duration time.Duration)
| 283 | // WithCacheExpiryDuration sets the duration after which the cache is considered |
| 284 | // expired. By default, the cache is 0 (disabled). |
| 285 | func WithCacheExpiryDuration(duration time.Duration) ExecutorOption { |
| 286 | return &cacheExpiryDurationOption{duration: duration} |
| 287 | } |
| 288 | |
| 289 | type cacheExpiryDurationOption struct { |
| 290 | duration time.Duration |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…