#include <dbInterfaceRedis.hpp>
Public Member Functions | |
| DbInterfaceRedis (const std::string &prefix, const std::string &db_endpoint, const timeval &db_timeout) | |
| bool | IsConnected () const |
| void | SetStates (const std::string &prefix, const std::string &state, const std::string &substate) |
| void | BatchSet (const ifw::core::utils::bat::DbVector &vec) |
| template<typename T> | |
| void | Set (const std::string &key, const T &value) |
| DbInterfaceRedis (const DbInterfaceRedis &)=delete | |
| Disable copy constructor. | |
| DbInterfaceRedis & | operator= (const DbInterfaceRedis &)=delete |
| Disable assignment operator. | |
This class is the interface to the in-memory DB.
| ifw::core::utils::bat::DbInterfaceRedis::DbInterfaceRedis | ( | const std::string & | prefix, |
| const std::string & | db_endpoint, | ||
| const timeval & | db_timeout ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. |
|
delete |
Disable copy constructor.
| void ifw::core::utils::bat::DbInterfaceRedis::BatchSet | ( | const ifw::core::utils::bat::DbVector & | vec | ) |
|
inline |
|
delete |
Disable assignment operator.
| void ifw::core::utils::bat::DbInterfaceRedis::Set | ( | const std::string & | key, |
| const T & | value ) |
| void ifw::core::utils::bat::DbInterfaceRedis::SetStates | ( | const std::string & | prefix, |
| const std::string & | state, | ||
| const std::string & | substate ) |