MCPcopy
hub / github.com/rclone/rclone / Clear

Function Clear

fs/cache/cache.go:240–244  ·  view source on GitHub ↗

Clear removes everything from the cache

()

Source from the content-addressed store, hash-verified

238
239// Clear removes everything from the cache
240func Clear() {
241 createOnFirstUse()
242 c.Clear()
243 ClearMappings()
244}
245
246// Entries returns the number of entries in the cache
247func Entries() int {

Callers 6

RunFunction · 0.92
newRunIndividualFunction · 0.92
FinaliseMethod · 0.92
rcCacheClearFunction · 0.92
mockNewFsFunction · 0.92
TestClearFunction · 0.85

Calls 3

createOnFirstUseFunction · 0.85
ClearMappingsFunction · 0.85
ClearMethod · 0.45

Tested by 2

mockNewFsFunction · 0.74
TestClearFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…