Unify Redis and Valkey store implementations in pkg/store
Maintainers usually reply within 1 day
@GuTS805 is already working on this.
Since Dec 4, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 44/100
Research direction
Read pkg/store/store_redis.go and pkg/store/store_valkey.go side by side, starting with loadSandboxesBySessionIDs and its pipeline behavior. Trace the shared commands, Lua script, key layout, serialization, validation, and expiry/GC logic, then compare the existing store tests for both backends. Done means one shared implementation preserves the documented environment variables and covers both Redis and Valkey behavior.
Written by the indexing model from the issue text.
Description
What would you like to be added:
Consolidate pkg/store/store_redis.go and pkg/store/store_valkey.go into a single implementation while keeping backward compatibility for existing STORE_TYPE, REDIS_*, and VALKEY_* env vars.
Two options to consider:
- Use a single RESP-compatible client (
valkey-goorgo-redis/v9) for both Redis and Valkey. - If we still want to keep both SDKs, extract a thin low-level driver interface so key layout, serialization, validation, and expiry/GC logic live in one place.
Why is this needed:
Right now store_redis.go and store_valkey.go duplicate the same store logic and only use standard RESP commands (GET, SETNX, SET XX, DEL, ZADD, ZREM, ZRANGEBYSCORE, and the same Lua script). Every store change or bug fix has to be implemented and tested twice, and the two backends have already started drifting (e.g. pipeline GET vs MGET in loadSandboxesBySessionIDs).
- Dominant language
- Go
- Stars
- 176
- Forks
- 95
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from volcano-sh/agentcube
-
cli: `agentcube invoke` keeps sending an expired session ID and never recoversPossibly taken A pull request linked to this issue is open or already merged. Openkind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
volcano-sh/agentcube#533 ·
Maintainers usually reply within 1 day
-
Flaky TestGetPrivateKeyPEM in pkg/router due to direct deep equal assertion on rsa.PrivateKeyPossibly taken @0xA8hinav claimed this 207 days ago. Openkind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
volcano-sh/agentcube#348 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
volcano-sh/agentcube#531 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
volcano-sh/agentcube#530 ·
Maintainers usually reply within 1 day
-
workloadmanager: POST /sandbox has no per-owner rate limitingPossibly taken @SoumaCloud claimed this 21 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
volcano-sh/agentcube#513 ·
Maintainers usually reply within 1 day
All issues in volcano-sh/agentcube
Similar issues
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rohitgollarahalli/mcpx#45 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
router-for-me/CLIProxyAPI#8851 ·
Maintainers usually reply within 7 days
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Windows 主机
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Lee-xeo/Claude-Cage#1550 ·
Maintainers usually reply within 1 day