1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-15 16:14:12 +00:00

Add optional database selection parameter in yml file.

This commit is contained in:
King_DuckZ 2016-06-10 09:55:37 +02:00
parent 8bdb1f237f
commit 04b667485e
4 changed files with 20 additions and 7 deletions

View file

@ -27,7 +27,7 @@ namespace dindb {
class BackendRedis : public Backend {
public:
BackendRedis ( BackendRedis&& ) = default;
BackendRedis ( std::string&& parAddress, uint16_t parPort, bool parConnect );
BackendRedis ( std::string&& parAddress, uint16_t parPort, uint16_t parDatabase, bool parConnect );
virtual ~BackendRedis ( void ) noexcept;
virtual void connect ( void ) override;
@ -57,6 +57,7 @@ namespace dindb {
private:
redis::Command m_redis;
uint16_t m_database;
};
} //namespace dindb