dotnetcore / EasyCaching

:boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
MIT License
1.92k stars 324 forks source link

RemoveByPatternAsync process takes a long time. #513

Open hirandiazWoffu opened 7 months ago

hirandiazWoffu commented 7 months ago

https://github.com/dotnetcore/EasyCaching/blob/266bec0e6825231e4c99196c2395f02364367bd7/src/EasyCaching.Core/EasyCachingAbstractProvider.cs#L723

We proceed to delete a list of records that share a pattern in the cache keys; the process takes 2 to 3 seconds to complete for a number of records << 100,000. Is there any configuration to make this process go faster?

catcherwong commented 7 months ago

@hirandiazWoffu Thanks for your interest in this project.

Which provider do you use?

hirandiazWoffu commented 7 months ago

@catcherwong EasyCaching.Redis