CleanMatchKey 清除通配符匹配的Key
(key string)
| 106 | |
| 107 | // CleanMatchKey 清除通配符匹配的Key |
| 108 | func (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 清除通配符匹配的前缀 |
| 125 | func (this *KVFileList) CleanMatchPrefix(prefix string) error { |
nothing calls this directly
no test coverage detected