-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: Solution The set command cache does not take effect #3024
Conversation
WalkthroughThe changes refine TTL handling in cache operations. In both Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant SetCmd as SetCmd::DoUpdateCache
participant GetCmd as GetCmd::DoUpdateCache
Client ->> SetCmd: Call update cache (with ttl)
SetCmd ->> SetCmd: Check if ttl > 0?
alt ttl > 0
SetCmd ->> SetCmd: Divide ttl by 1000
else ttl <= 0
SetCmd -->> SetCmd: Use ttl as-is
end
Client ->> GetCmd: Call update cache (with ttl)
GetCmd ->> GetCmd: Check if ttl > 0?
alt ttl > 0
GetCmd ->> GetCmd: Divide ttl by 1000
else ttl <= 0
GetCmd -->> GetCmd: Use ttl as-is
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (2)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
解决了 Set 命令更新 Cache 不生效的问题,原因在于使用 Set 命令时设置 TTL 为 0
issue: #3014
Summary by CodeRabbit