Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count计数错误 #497

Closed
wujunchengman opened this issue Oct 11, 2023 · 1 comment · Fixed by #498
Closed

Count计数错误 #497

wujunchengman opened this issue Oct 11, 2023 · 1 comment · Fixed by #498

Comments

@wujunchengman
Copy link

Description

写入缓存后

Steps to Reproduce

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

Related code

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

Specifications

  • Provider : InMemory (version1.9.1)
  • Interceptor : AspectCore (version 7.0.0)
  • Serializer : not use
  • System : Win11
@catcherwong
Copy link
Member

@wujunchengman Thanks for your interest in this project.

We will take a look ASAP.

cc @Memoyu

Memoyu added a commit to Memoyu/EasyCaching that referenced this issue Oct 12, 2023
catcherwong pushed a commit that referenced this issue Oct 13, 2023
* fix: no check expires when get cache count in memory cache

* styles: format code #497

* feat: add test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants