fix redis event loop closed at first call (#16913)

This commit is contained in:
wangsoft 2025-11-22 11:15:56 +08:00 committed by GitHub
parent 6e70c279f8
commit 42c883d64f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,7 +193,7 @@ class RedisCache(BaseCache):
connection_pool=self.async_redis_conn_pool, **self.redis_kwargs
)
in_memory_llm_clients_cache.set_cache(
key="async-redis-client", value=self.redis_async_client
key="async-redis-client", value=redis_async_client
)
self.redis_async_client = redis_async_client # type: ignore