Skip to content

Phase 6: RedisStorage implementation#8

Merged
mcollina merged 2 commits intomainfrom
phase-6-redis-storage
Feb 14, 2026
Merged

Phase 6: RedisStorage implementation#8
mcollina merged 2 commits intomainfrom
phase-6-redis-storage

Conversation

@mcollina
Copy link
Copy Markdown
Member

Summary

  • Add Lua scripts for atomic Redis operations (enqueue, complete, fail, retry, cancel)
  • Implement RedisStorage class with iovalkey for Redis/Valkey connectivity
  • Add BLMOVE for blocking dequeue and pub/sub for notifications
  • Add comprehensive test suite mirroring MemoryStorage tests (25 tests)
  • Export RedisStorage from package index

Test plan

  • TypeScript type checking passes
  • All 25 Redis storage tests pass
  • CI verification (requires Redis/Valkey docker containers)

🤖 Generated with Claude Code

mcollina and others added 2 commits February 14, 2026 22:51
- Add Lua scripts for atomic operations:
  - enqueue.lua: Atomic enqueue with deduplication
  - complete.lua: Atomic job completion with result storage
  - fail.lua: Atomic job failure with error storage
  - retry.lua: Atomic job retry with attempt increment
  - cancel.lua: Atomic job cancellation

- Implement RedisStorage class:
  - Uses iovalkey for Redis/Valkey connectivity
  - BLMOVE for blocking dequeue operations
  - Pub/sub for job notifications and events
  - Configurable key prefix for test isolation

- Add comprehensive test suite mirroring MemoryStorage tests
- Export RedisStorage from package index

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mcollina mcollina merged commit 99468e3 into main Feb 14, 2026
10 checks passed
@mcollina mcollina deleted the phase-6-redis-storage branch February 14, 2026 21:54
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.

1 participant