From 53dd6cc476739abe3b32dbca7bb2acc3b8caf2bc Mon Sep 17 00:00:00 2001 From: 1585346868 <1585346868@qq.com> Date: Mon, 13 Apr 2026 15:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20target/redis/conn.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- target/redis/conn.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/redis/conn.lua b/target/redis/conn.lua index 42e290c..184dd27 100644 --- a/target/redis/conn.lua +++ b/target/redis/conn.lua @@ -84,7 +84,12 @@ function redis_conn.new(__module) instance.module = __module return instance end - +--[[ + 关闭 +]] +function redis_conn:close() + return self.module:close() +end --[[ 执行 Redis 命令 @param cmd Redis 命令字符串