更新 src/redis.cpp
This commit is contained in:
@@ -185,10 +185,13 @@ module::redis::redis(redisContext* context, redis_pool* pool):m_context(context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
module::redis::~redis()
|
module::redis::~redis()
|
||||||
|
{
|
||||||
|
this->close();
|
||||||
|
}
|
||||||
|
void module:redis::close()
|
||||||
{
|
{
|
||||||
m_pool->recover(m_context);
|
m_pool->recover(m_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
sol::object module::redis::command(const std::string& cmd, sol::this_state ts)
|
sol::object module::redis::command(const std::string& cmd, sol::this_state ts)
|
||||||
{
|
{
|
||||||
//return m_pool->reply(&ts,m_context,(redisReply*)redisCommand(m_context, cmd.c_str()));
|
//return m_pool->reply(&ts,m_context,(redisReply*)redisCommand(m_context, cmd.c_str()));
|
||||||
|
|||||||
Reference in New Issue
Block a user