Closed dplarina closed 3 months ago
I'm not sure why this happens and seems to happen more frequently during debugging but sometimes creating the FileStream in InitCacheKey() for the Disk cache provider will fail with "the file is use" because File.Create(path) returns a FileStream that is not closed/disposed. https://github.com/InspireHUB/EasyCaching/blob/2eb92279d65a3a5f1c9fad1cb4f98344f7c98baa/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs#L167
I'm not sure why this happens and seems to happen more frequently during debugging but sometimes creating the FileStream in InitCacheKey() for the Disk cache provider will fail with "the file is use" because File.Create(path) returns a FileStream that is not closed/disposed. https://github.com/InspireHUB/EasyCaching/blob/2eb92279d65a3a5f1c9fad1cb4f98344f7c98baa/src/EasyCaching.Disk/DefaultDiskCachingProvider.cs#L167