diff --git a/internal/caches/storage_file.go b/internal/caches/storage_file.go index 55eb780..1b09b11 100644 --- a/internal/caches/storage_file.go +++ b/internal/caches/storage_file.go @@ -1170,6 +1170,9 @@ func (this *FileStorage) hotLoop() { var result = []*HotItem{} // [ {key: ..., hits: ...}, ... ] for _, v := range this.hotMap { + if v.Hits <= 1 { + continue + } result = append(result, v) }