litellm/litellm-rust/crates/config/AGENTS.md
Yujong Lee b7e07948c8 refactor(redis): interpret merged kwargs in redis-resolve and merge in gateway
config now only deserializes the Redis YAML. The new litellm-redis-resolve crate
turns an already merged redis-py kwargs dict into a Resolution without reading the
environment or secrets, so both hosts can share it. The REDIS_* layering, the
get_secret fallbacks and the Azure REDIS_USERNAME read move to gateway, the only
host that needs a Rust copy of the merge.

litellm/_redis.py gets _merge_redis_kwargs, the merge stage of
_get_redis_client_logic, and the contract cases gain a merged column that pins
the Python merge, the Rust merge and the Rust interpret step to the same dict.
2026-11-05 08:35:23 +09:00

352 B

Redis settings

  • This crate only deserializes YAML. RedisSettings is the raw coordination_redis or cache_params map and CacheSettings tells a type: redis cache apart from the rest. Reading those maps the way litellm/_redis.py does belongs to gateway/src/redis, and turning merged kwargs into a Resolution belongs to redis-resolve