add getDB() which return the db number we are connected to
This commit is contained in:
@@ -2994,4 +2994,8 @@ public class BinaryJedis implements BinaryJedisCommands {
|
||||
jedisPubSub.proceedWithPatterns(client, patterns);
|
||||
client.rollbackTimeout();
|
||||
}
|
||||
|
||||
public Long getDB() {
|
||||
return client.getDB();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user