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(); + } }