改造配置文件,去掉敏感信息
This commit is contained in:
@@ -190,6 +190,10 @@ class AsyncRedisManager:
|
||||
await self.redis_pool.wait_closed()
|
||||
logger.info("🔴 Redis连接已关闭")
|
||||
|
||||
async def close(self):
|
||||
"""断开Redis连接 (disconnect方法的别名)"""
|
||||
await self.disconnect()
|
||||
|
||||
async def create_lock(self, key: str, timeout: int = None) -> AsyncRedisLock:
|
||||
"""创建分布式锁"""
|
||||
if not self.redis_pool:
|
||||
|
||||
Reference in New Issue
Block a user