MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / CleanAll

Method CleanAll

internal/caches/list_interface.go:37–37  ·  view source on GitHub ↗

CleanAll 清除所有缓存

()

Source from the content-addressed store, hash-verified

35
36 // CleanAll 清除所有缓存
37 CleanAll() error
38
39 // Stat 统计
40 Stat(check func(hash string) bool) (*Stat, error)

Callers 9

TestMemoryList_CleanAllFunction · 0.65
TestMemoryList_GCFunction · 0.65
CleanAllMethod · 0.65
TestKVFileList_CleanAllFunction · 0.65
TestFileList_CleanAllFunction · 0.65
TestFileStorage_CleanAllFunction · 0.65
CleanAllMethod · 0.65
handleCleanCacheMethod · 0.65

Implementers 3

MemoryListinternal/caches/list_memory.go
KVFileListinternal/caches/list_file_kv.go
SQLiteFileListinternal/caches/list_file_sqlite.go

Calls

no outgoing calls

Tested by 6

TestMemoryList_CleanAllFunction · 0.52
TestMemoryList_GCFunction · 0.52
TestKVFileList_CleanAllFunction · 0.52
TestFileList_CleanAllFunction · 0.52
TestFileStorage_CleanAllFunction · 0.52