Loading plugins/media/redis.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,8 +29,12 @@ #include <httppp/exception.h> #include <mutex> #include "backend.h" std::mutex recon_mutex; blogi::RedisStore::RedisStore(const char *host,int port,const char *password){ _host=host; _port=port; Loading Loading @@ -102,6 +106,7 @@ void blogi::RedisStore::load(const std::string key,std::vector<char> &value) { } void blogi::RedisStore::_reconnect(){ const std::lock_guard<std::mutex> lock(recon_mutex); redisReconnect(_RedisCTX); Loading Loading
plugins/media/redis.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,8 +29,12 @@ #include <httppp/exception.h> #include <mutex> #include "backend.h" std::mutex recon_mutex; blogi::RedisStore::RedisStore(const char *host,int port,const char *password){ _host=host; _port=port; Loading Loading @@ -102,6 +106,7 @@ void blogi::RedisStore::load(const std::string key,std::vector<char> &value) { } void blogi::RedisStore::_reconnect(){ const std::lock_guard<std::mutex> lock(recon_mutex); redisReconnect(_RedisCTX); Loading