Skip to content

DOC-6616 Prefetch queue use case example#3317

Merged
andy-stark-redis merged 14 commits into
mainfrom
DOC-6616-prefetch-cache-use-case
May 14, 2026
Merged

DOC-6616 Prefetch queue use case example#3317
andy-stark-redis merged 14 commits into
mainfrom
DOC-6616-prefetch-cache-use-case

Conversation

@andy-stark-redis
Copy link
Copy Markdown
Contributor

@andy-stark-redis andy-stark-redis commented May 13, 2026

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 substantial new Go and .NET demo code and operational guidance, which may introduce broken snippets or inconsistent conventions if not reviewed carefully. No production code paths are affected, but the new samples include concurrency/Redis command semantics that are easy to get subtly wrong.

Overview
Introduces a new prefetch-cache use case and links it from the top-level use-cases index, describing the pattern (bulk pre-load + continuous CDC-style sync, no primary fallback on misses).

Adds two runnable reference implementations: a Go go-redis demo server and helper (BulkLoad, Get, ApplyChange, Clear via SCAN, pause/resume sync worker) and a .NET 8 StackExchange.Redis minimal-API demo with equivalent helper and background sync thread, including key-prefix configurability and UI/stat endpoints.

Updates the porting/audit checklists and conventions to codify new cross-client pitfalls (guarding empty-field HSET, preserving TTL -2/-1 sentinels via raw commands, locked emit ordering, SCAN without admin privileges, and documentation consistency checks for “Get the source files” blocks).

Reviewed by Cursor Bugbot for commit 416b192. Bugbot is set up for automated code reviews on this repo. Configure here.

@andy-stark-redis andy-stark-redis self-assigned this May 13, 2026
@andy-stark-redis andy-stark-redis added the clients Client library docs label May 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 13, 2026

DOC-6616

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@andy-stark-redis andy-stark-redis marked this pull request as ready for review May 13, 2026 12:30
Comment thread content/develop/use-cases/prefetch-cache/redis-py/demo_server.py Outdated
Comment thread content/develop/use-cases/prefetch-cache/redis-py/cache.py
Comment thread content/develop/use-cases/prefetch-cache/go/cache.go Outdated
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Comment thread content/develop/use-cases/prefetch-cache/go/demo_server.go Outdated
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Comment thread content/develop/use-cases/prefetch-cache/dotnet/Program.cs
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Comment thread content/develop/use-cases/prefetch-cache/go/sync_worker.go Outdated
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread content/develop/use-cases/prefetch-cache/dotnet/Program.cs Outdated
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

@andy-stark-redis andy-stark-redis requested a review from a team May 13, 2026 15:47
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 13, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Copy link
Copy Markdown
Collaborator

@dwdougherty dwdougherty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor nitpick; otherwise, LGTM. I only read the Python example, as the others have similar text. I didn't scrutinize the code.

Comment thread content/develop/use-cases/prefetch-cache/_index.md Outdated
@andy-stark-redis
Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty !

@andy-stark-redis andy-stark-redis merged commit 95404b7 into main May 14, 2026
3 of 4 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-6616-prefetch-cache-use-case branch May 14, 2026 09:22
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 14, 2026

❌ Jit Scanner failed - Our team is investigating

Jit 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 @sera bypass to override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants