MCPcopy
hub / github.com/syncthing/syncthing / WithCache

Function WithCache

lib/ignore/ignore.go:139–143  ·  view source on GitHub ↗

WithCache enables or disables lookup caching. The default is disabled.

(v bool)

Source from the content-addressed store, hash-verified

137
138// WithCache enables or disables lookup caching. The default is disabled.
139func 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.

Callers 15

TestIgnoresFunction · 0.92
TestRecurseIncludeFunction · 0.92
TestSkipIgnoredDirsFunction · 0.92
TestIncludedSubdirFunction · 0.92
TestIgnoreFunction · 0.85
TestExcludesFunction · 0.85
TestFlagOrderFunction · 0.85
TestDeletablesFunction · 0.85
TestBadPatternsFunction · 0.85
TestCaseSensitivityFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestIgnoresFunction · 0.74
TestRecurseIncludeFunction · 0.74
TestSkipIgnoredDirsFunction · 0.74
TestIncludedSubdirFunction · 0.74
TestIgnoreFunction · 0.68
TestExcludesFunction · 0.68
TestFlagOrderFunction · 0.68
TestDeletablesFunction · 0.68
TestBadPatternsFunction · 0.68
TestCaseSensitivityFunction · 0.68
TestCachingFunction · 0.68