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

improve cache duration from second to millisecond for redis adapter of package gcache #3052

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

fainc
Copy link
Contributor

@fainc fainc commented Oct 16, 2023

修改 gcache_adapter_redis ,将秒级过期时间更新为毫秒级,使redis缓存与内存缓存表现一致,提高gcache可用性。修复秒级过期时间控制可能产生的精度逻辑问题。#3049

os/gcache/gcache_adapter_redis.go Outdated Show resolved Hide resolved
os/gcache/gcache_adapter_redis.go Outdated Show resolved Hide resolved
@gqcn gqcn changed the title fix gcache_adapter_redis.go improve cache duration from second to millisecond for redis adapter of package gcache Oct 17, 2023
@gqcn gqcn merged commit 943939b into gogf:master Oct 18, 2023
12 checks passed
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 this pull request may close these issues.

None yet

2 participants