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

Method RemoveAllItems

internal/caches/list_file_kv_store.go:128–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (this *KVListFileStore) RemoveAllItems() error {
129 if !this.isReady() {
130 return nil
131 }
132
133 return this.itemsTable.Truncate()
134}
135
136func (this *KVListFileStore) PurgeItems(count int, callback func(hash string) error) (int, error) {
137 if !this.isReady() {

Callers 1

CleanAllMethod · 0.80

Calls 2

isReadyMethod · 0.95
TruncateMethod · 0.45

Tested by

no test coverage detected