From 8b74b529327d34baf3eef72a86654900fb509720 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 22 Apr 2024 19:32:03 -0700 Subject: [PATCH] docs(caching.md): add redis ssl to docs --- docs/my-website/docs/proxy/caching.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/my-website/docs/proxy/caching.md b/docs/my-website/docs/proxy/caching.md index 521fce84a..fd6451155 100644 --- a/docs/my-website/docs/proxy/caching.md +++ b/docs/my-website/docs/proxy/caching.md @@ -61,6 +61,22 @@ litellm_settings: ttl: 600 # will be cached on redis for 600s ``` + +## SSL + +just set `REDIS_SSL="True"` in your .env, and LiteLLM will pick this up. + +```env +REDIS_SSL="True" +``` + +For quick testing, you can also use REDIS_URL, eg.: + +``` +REDIS_URL="rediss://.." +``` + +but we **don't** recommend using REDIS_URL in prod. We've noticed a performance difference between using it vs. redis_host, port, etc. #### Step 2: Add Redis Credentials to .env Set either `REDIS_URL` or the `REDIS_HOST` in your os environment, to enable caching.