MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Purge

Method Purge

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

Purge 清理过期数据

(count int, callback func(hash string) error)

Source from the content-addressed store, hash-verified

29
30 // Purge 清理过期数据
31 Purge(count int, callback func(hash string) error) (int, error)
32
33 // PurgeLFU 清理LFU数据
34 PurgeLFU(count int, callback func(hash string) error) error

Callers 8

TestMemoryList_PurgeFunction · 0.65
BenchmarkMemoryListFunction · 0.65
PurgeMethod · 0.65
purgeLoopMethod · 0.65
TestKVFileList_PurgeFunction · 0.65
purgeLoopMethod · 0.65
TestFileList_PurgeFunction · 0.65
processKeyMethod · 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 4

TestMemoryList_PurgeFunction · 0.52
BenchmarkMemoryListFunction · 0.52
TestKVFileList_PurgeFunction · 0.52
TestFileList_PurgeFunction · 0.52