From c595b8e6acf26ca39b51073830d879b64325fef0 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Mon, 22 Jul 2024 14:48:49 +0800 Subject: [PATCH] v2.3 --- src/main/java/com/io/yutian/aulib/redis/RedisIO.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/io/yutian/aulib/redis/RedisIO.java b/src/main/java/com/io/yutian/aulib/redis/RedisIO.java index f8f569f..02d1c8c 100644 --- a/src/main/java/com/io/yutian/aulib/redis/RedisIO.java +++ b/src/main/java/com/io/yutian/aulib/redis/RedisIO.java @@ -12,7 +12,7 @@ import java.io.File; import java.time.Duration; import java.util.Set; -public class RedisIO { +public class RedisIO implements IJedisGetter { private JedisPool jedisPool; @@ -80,4 +80,8 @@ public class RedisIO { } } + @Override + public Jedis getRedis() { + return jedisPool.getResource(); + } }