ifw-core 7.0.0
 
Loading...
Searching...
No Matches
ifw::core::utils::bat::DbInterfaceRedis Class Reference

#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.
 
DbInterfaceRedisoperator= (const DbInterfaceRedis &)=delete
 Disable assignment operator.
 

Detailed Description

This class is the interface to the in-memory DB.

Constructor & Destructor Documentation

◆ DbInterfaceRedis() [1/2]

ifw::core::utils::bat::DbInterfaceRedis::DbInterfaceRedis ( const std::string & prefix,
const std::string & db_endpoint,
const timeval & db_timeout )

Constructor.

Parameters
[in]prefixString used as prefix when building the keys.

◆ DbInterfaceRedis() [2/2]

ifw::core::utils::bat::DbInterfaceRedis::DbInterfaceRedis ( const DbInterfaceRedis & )
delete

Disable copy constructor.

Member Function Documentation

◆ BatchSet()

void ifw::core::utils::bat::DbInterfaceRedis::BatchSet ( const ifw::core::utils::bat::DbVector & vec)

◆ IsConnected()

bool ifw::core::utils::bat::DbInterfaceRedis::IsConnected ( ) const
inline

◆ operator=()

DbInterfaceRedis & ifw::core::utils::bat::DbInterfaceRedis::operator= ( const DbInterfaceRedis & )
delete

Disable assignment operator.

◆ Set()

template<typename T>
void ifw::core::utils::bat::DbInterfaceRedis::Set ( const std::string & key,
const T & value )

◆ SetStates()

void ifw::core::utils::bat::DbInterfaceRedis::SetStates ( const std::string & prefix,
const std::string & state,
const std::string & substate )

The documentation for this class was generated from the following files: