diff --git a/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs b/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs index 558dc40b..1acea1d6 100644 --- a/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs +++ b/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs @@ -115,7 +115,7 @@ private void Init() if (!File.Exists(path)) { - File.Create(path); + using (File.Create(path)) {} } InitCacheKey();