Newer
Older
/*
*
* Created on: Mar 1, 2021
* Author: astrisw
*/
#ifndef REDISPROVIDER_H_
#define REDISPROVIDER_H_
#include <Base_Provider.h>
#include <unordered_map>
std::string & key = *(&this->dest);
void setDest(std::string dest){setKey(dest);}
std::string getDest(){return getKey();}
public:
RedisProvider();
RedisProvider(std::string ip, int port, std::string key);
void setKey(std::string key){this->key=key;}
std::string getIp(){return this->ip;}
template<typename Value, template<typename> typename Container>
int write(PacketLib::BasePacket<Container,Value> &);
template<typename Value, template<typename> typename Container>
int write(PacketLib::BasePacket<Container,Value> &, std::string dest);