xx 2 years ago
parent
commit
7e262344b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/redis.cpp

+ 2 - 2
src/redis.cpp

@@ -206,14 +206,14 @@ sol::object module::redis::command(const std::string& cmd, sol::this_state ts)
 
 void module::redis_regist(sol::state* lua)
 {
-    lua->new_usertype<module::redis_pool>("redis_pool",
+    lua->new_usertype<module::redis_pool>("fw_redis_pool",
         "close", &module::redis_pool::close,
         "start", &module::redis_pool::start,
         "get", &module::redis_pool::get,
         "pop_size", &module::redis_pool::pop_size,
         "self", &module::redis_pool::self
     );
-    lua->new_usertype<module::redis>("redis_conn",
+    lua->new_usertype<module::redis>("fw_redis_conn",
         "command", &module::redis::command
     );
 }