Skip to content
Redis_Provider.cpp 521 B
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
#include <Redis_Provider.h>


RedisProvider::RedisProvider(){
	setKey("DAQ_key");
	this->stream = rediscpp::make_stream("localhost", "6379");

}

RedisProvider::RedisProvider(std::string ip, int port, std::string key){
	setKey(key);
Valerio Pastore's avatar
Valerio Pastore committed
	this->stream = rediscpp::make_stream(ip, std::to_string(port));
Valerio Pastore's avatar
Valerio Pastore committed
}


int RedisProvider::write(BasePacket &packet){
	return 1;
}

int RedisProvider::write(BasePacket &packet, std::string key){
	return 1;
}

int RedisProvider::open(){
	return 1;
}

int RedisProvider::close(){
	return 1;
Valerio Pastore's avatar
Valerio Pastore committed
}