LibreChat/packages/api/src
Serhii Zghama 9cd2fc2ed6
🧩 fix: Add REDIS_CLUSTER_SAFE_DELETE Flag for ElastiCache Serverless CROSSSLOT Errors (#13275)
* fix(redis): add REDIS_CLUSTER_SAFE_DELETE for ElastiCache Serverless CROSSSLOT errors

ElastiCache Serverless and similar managed Redis services present a single-node
connection endpoint but shard keys internally. When USE_REDIS_CLUSTER=false (as
required for single-endpoint services), batchDeleteKeys() uses multi-key DEL
commands that fail with CROSSSLOT errors because the managed cluster rejects
cross-slot operations.

Adds REDIS_CLUSTER_SAFE_DELETE=true which forces per-key deletion (the same
cluster-safe path) without changing the connection mode. This makes the delete
strategy independent of the connection topology.

Closes #13261

* test(cache): add REDIS_CLUSTER_SAFE_DELETE config tests

* fix: Avoid nested Redis delete mode ternary

* docs: Add Redis cluster-safe delete env example

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
2026-05-24 14:49:40 -04:00
..
acl
admin 🪟 fix: Apply Admin-Panel Config Overrides To YAML-Defined MCP Servers (#13173) 2026-05-23 17:11:13 -04:00
agents 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
apiKeys
app 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
auth
cache 🧩 fix: Add REDIS_CLUSTER_SAFE_DELETE Flag for ElastiCache Serverless CROSSSLOT Errors (#13275) 2026-05-24 14:49:40 -04:00
cdn
cluster
crypto
db
endpoints 🧱 fix: Validate Bedrock User Credentials (#13277) 2026-05-23 16:46:15 -04:00
files 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
flow
mcp 🪟 fix: Apply Admin-Panel Config Overrides To YAML-Defined MCP Servers (#13173) 2026-05-23 17:11:13 -04:00
memory
middleware 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
modelSpecs
oauth
prompts
skills
storage
stream
telemetry 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
tools 🪨 fix: Normalize Empty MCP Tool Descriptions to undefined for Bedrock Compat. (#13217) 2026-05-23 09:43:40 -04:00
types 🪙 feat: Add AWS Bedrock API key support (#8690) 2026-05-23 12:41:38 -04:00
utils 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
web
index.ts