Skip to content

Commit

Permalink
Add jedis getter to obtains Jedis resource
Browse files Browse the repository at this point in the history
  • Loading branch information
apik007 committed Apr 15, 2023
1 parent 5303630 commit b244385
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.example</groupId>
<artifactId>ForestRedisAPI</artifactId>
<version>1.0.9</version>
<version>1.1.0</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ public boolean isSubscribed(String channel) {

/*----------------------------------------------------------------------------------------------------------*/

public Jedis getJedis() {
return this.jedisPool.getResource();
}

/*----------------------------------------------------------------------------------------------------------*/

/**
* Returns list of all subscribed channels.
*
Expand Down

0 comments on commit b244385

Please sign in to comment.