DOC-6616 Prefetch queue use case example#3317
Conversation
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7bd7d08. Configure here.
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
❌ Jit Scanner failed - Our team is investigatingJit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions. 💡 Need to bypass this check? Comment |
dwdougherty
left a comment
There was a problem hiding this comment.
Just one minor nitpick; otherwise, LGTM. I only read the Python example, as the others have similar text. I didn't scrutinize the code.
| You can: | ||
|
|
||
| - Achieve near-100% cache hit ratios for country codes, product categories, translations, configuration, and other reference tables. | ||
| - Keep P95 read latency under 1 ms for lookup-heavy request paths at peak traffic. |
There was a problem hiding this comment.
It wouldn't hurt to define "P95". I'd never seen the term before, so I had to look it up.

Don't review yet - this is just to get some early feedback from the Bugbot.
Note
Medium Risk
Adds a new use case section plus sizable new runnable demo code (Go and .NET) including background sync and Redis write paths; risk is mostly doc/demo correctness and build/runtime issues rather than production logic.
Overview
Adds a new Prefetch cache use case to
/develop/use-cases, describing the pattern (bulk pre-load + ongoing CDC-style sync) and listing per-language guides.Introduces full runnable reference implementations for Go (
go-redis) and .NET (StackExchange.Redis) demos, including a mock primary store emitting change events, a background sync worker with pause/resume for maintenance actions, and cache helpers that bulk-load, apply upserts/deletes, clear viaSCAN, and expose TTL/stats.Updates internal porting/audit checklists and conventions to capture newly-learned pitfalls: guarding empty-field
HSET, preservingTTL-2/-1sentinels (via rawTTLcommands where wrappers lose them), locked mutate+emit ordering, and minor source-download checklist tightening.Reviewed by Cursor Bugbot for commit 6e5a406. Bugbot is set up for automated code reviews on this repo. Configure here.