fix ext_redis.py

This commit is contained in:
liuhaoran 2024-11-04 09:42:39 +08:00 committed by GitHub
parent c6d4e50e3f
commit 6327d72bc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,12 @@
import redis
from redis.cluster import ClusterNode, RedisCluster
from redis.connection import Connection, SSLConnection
from redis.sentinel import Sentinel
from redis.cluster import RedisCluster, ClusterNode
from configs import dify_config
class RedisClientWrapper():
class RedisClientWrapper:
"""
A wrapper class for the Redis client that addresses the issue where the global
`redis_client` variable cannot be updated when a new Redis instance is returned