test(test_caching_handler.py): move to in-memory cache - prevent redis flakiness from impacting ci/cd
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 15s
Helm unit test / unit-test (push) Successful in 19s

This commit is contained in:
Krrish Dholakia 2025-03-28 13:31:54 -07:00
parent 7c85054bad
commit 28a9edb547

View file

@ -40,12 +40,7 @@ import logging
def setup_cache():
# Set up the cache
cache = Cache(
type=LiteLLMCacheType.REDIS,
host=os.environ["REDIS_HOST"],
port=os.environ["REDIS_PORT"],
password=os.environ["REDIS_PASSWORD"],
)
cache = Cache(type=LiteLLMCacheType.LOCAL)
litellm.cache = cache
return cache