diff --git a/internal/caches/storage_file.go b/internal/caches/storage_file.go index 99624b1..2aa3030 100644 --- a/internal/caches/storage_file.go +++ b/internal/caches/storage_file.go @@ -614,7 +614,9 @@ func (this *FileStorage) openWriter(key string, expiredAt int64, status int, hea metaBodySize = bodySize } + fsutils.WriteBegin() _, err = writer.Write(metaBytes) + fsutils.WriteEnd() if err != nil { return nil, err }