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:
parent
8bdb1f237f
commit
04b667485e
4 changed files with 20 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue