WithCache enables or disables lookup caching. The default is disabled.
(v bool)
| 137 | |
| 138 | // WithCache enables or disables lookup caching. The default is disabled. |
| 139 | func WithCache(v bool) Option { |
| 140 | return func(m *Matcher) { |
| 141 | m.withCache = v |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | // WithChangeDetector sets a custom ChangeDetector. The default is to simply |
| 146 | // use the on disk modtime for comparison. |
no outgoing calls