mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-29 14:21:40 +00:00
test(test_caching_handler.py): move to in-memory cache - prevent redis flakiness from impacting ci/cd
This commit is contained in:
committed by
Nicholas Grabar
parent
9e4165ac75
commit
8c9ff23e19
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user