add getDB() which return the db number we are connected to

This commit is contained in:
Jonathan Leibiusky
2011-05-11 22:50:53 -03:00
parent cd3b50268e
commit 6ff9683537
3 changed files with 35 additions and 5 deletions

View File

@@ -2994,4 +2994,8 @@ public class BinaryJedis implements BinaryJedisCommands {
jedisPubSub.proceedWithPatterns(client, patterns);
client.rollbackTimeout();
}
public Long getDB() {
return client.getDB();
}
}