perf: replace Redis KEYS with SCAN for cache invalidation (#98) #101

Merged
cal merged 1 commits from ai/major-domo-v2-98 into next-release 2026-03-20 15:26:43 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
df9e9bedbe perf: replace Redis KEYS with SCAN in clear_prefix (#98)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m22s
Closes #98

Replace blocking `client.keys(pattern)` with non-blocking
`client.scan_iter(match=pattern)` to avoid full-keyspace scans
that block the Redis server during cache invalidation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 09:02:22 -05:00