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

Count计数错误 #497

Closed wujunchengman closed 10 months ago

wujunchengman commented 10 months ago

Description

写入缓存后

Steps to Reproduce

写入缓存,更新缓存,缓存自然过期后,Count得到的值错误,在生产环境中是值少了,测试的时候值多了,不是正确的值

Related code

            // 添加10条缓存,等待缓存过期
            var z = _cachingProvider.GetAllKeysByPrefix("DeviceRunningInfo_");
            var c = await _cachingProvider.GetCountAsync("DeviceRunningInfo_");
            // z=0 正确
            // c=10 错误

Specifications

catcherwong commented 10 months ago

@wujunchengman Thanks for your interest in this project.

We will take a look ASAP.

cc @Memoyu