mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) self.redis_version issue
This commit is contained in:
parent
60a5e74352
commit
9207a0bf13
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ class RedisCache(BaseCache):
|
||||||
self.redis_client = get_redis_client(**redis_kwargs)
|
self.redis_client = get_redis_client(**redis_kwargs)
|
||||||
self.redis_kwargs = redis_kwargs
|
self.redis_kwargs = redis_kwargs
|
||||||
self.async_redis_conn_pool = get_redis_connection_pool(**redis_kwargs)
|
self.async_redis_conn_pool = get_redis_connection_pool(**redis_kwargs)
|
||||||
self.redis_version = self.redis_client.info()["redis_version"]
|
self.redis_version = "Unknown"
|
||||||
|
try:
|
||||||
|
self.redis_version = self.redis_client.info()["redis_version"]
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
|
|
||||||
def init_async_client(self):
|
def init_async_client(self):
|
||||||
from ._redis import get_redis_async_client
|
from ._redis import get_redis_async_client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue