litellm/litellm-rust/crates/redis-testing/AGENTS.md
yujonglee a0b5c8b824
feat(redis-client): support Redis Cluster (#48271)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-26 18:41:46 -07:00

671 B

  • Dev-only crate that starts real Redis for tests. Never a dependency outside [dev-dependencies]
  • Same shape as db-testing: one container per test, a handle that removes it on drop
  • The host port is fixed at start so restart keeps the same URL and a client can reconnect to it
  • RedisCluster runs 3 masters in one container. Each node listens on the same port inside and outside and announces 127.0.0.1, so MOVED redirects work from the test process
  • Outages come from the container (restart, freeze / thaw), never DEBUG, which the official image disables
  • No env gate that makes a test pass without Redis. A test that can't start its container fails