mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test(test_caching_handler.py): move to in-memory cache - prevent redis flakiness from impacting ci/cd
This commit is contained in:
parent
7c85054bad
commit
28a9edb547
1 changed files with 1 additions and 6 deletions
|
@ -40,12 +40,7 @@ import logging
|
||||||
|
|
||||||
def setup_cache():
|
def setup_cache():
|
||||||
# Set up the cache
|
# Set up the cache
|
||||||
cache = Cache(
|
cache = Cache(type=LiteLLMCacheType.LOCAL)
|
||||||
type=LiteLLMCacheType.REDIS,
|
|
||||||
host=os.environ["REDIS_HOST"],
|
|
||||||
port=os.environ["REDIS_PORT"],
|
|
||||||
password=os.environ["REDIS_PASSWORD"],
|
|
||||||
)
|
|
||||||
litellm.cache = cache
|
litellm.cache = cache
|
||||||
return cache
|
return cache
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue