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

Method CleanMatchKey

internal/caches/list_file_kv.go:108–122  ·  view source on GitHub ↗

CleanMatchKey 清除通配符匹配的Key

(key string)

Source from the content-addressed store, hash-verified

106
107// CleanMatchKey 清除通配符匹配的Key
108func (this *KVFileList) CleanMatchKey(key string) error {
109 var group = goman.NewTaskGroup()
110 var lastErr error
111 for _, store := range this.stores {
112 var storeCopy = store
113 group.Run(func() {
114 err := storeCopy.CleanItemsWithWildcardKey(key)
115 if err != nil {
116 lastErr = err
117 }
118 })
119 }
120 group.Wait()
121 return lastErr
122}
123
124// CleanMatchPrefix 清除通配符匹配的前缀
125func (this *KVFileList) CleanMatchPrefix(prefix string) error {

Callers

nothing calls this directly

Calls 4

NewTaskGroupFunction · 0.92
RunMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected