Skip to content

Commit b244385

Browse files
committed
Add jedis getter to obtains Jedis resource
1 parent 5303630 commit b244385

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.example</groupId>
88
<artifactId>ForestRedisAPI</artifactId>
9-
<version>1.0.9</version>
9+
<version>1.1.0</version>
1010

1111
<properties>
1212
<maven.compiler.source>11</maven.compiler.source>

src/main/java/cz/foresttech/forestredis/shared/RedisManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,12 @@ public boolean isSubscribed(String channel) {
333333

334334
/*----------------------------------------------------------------------------------------------------------*/
335335

336+
public Jedis getJedis() {
337+
return this.jedisPool.getResource();
338+
}
339+
340+
/*----------------------------------------------------------------------------------------------------------*/
341+
336342
/**
337343
* Returns list of all subscribed channels.
338344
*

0 commit comments

Comments
 (0)