| 1115 | } |
| 1116 | |
| 1117 | const char *RedisProtocolToLuaTypeInt(lua_State *lua, const char *reply) { |
| 1118 | const char *p = strchr(reply + 1, '\r'); |
| 1119 | auto value = ParseInt<int64_t>(std::string(reply + 1, p - reply - 1), 10).ValueOr(0); |
| 1120 | lua_pushnumber(lua, static_cast<lua_Number>(value)); |
| 1121 | return p + 2; |
| 1122 | } |
| 1123 | |
| 1124 | const char *RedisProtocolToLuaTypeBulk(lua_State *lua, const char *reply) { |
| 1125 | const char *p = strchr(reply + 1, '\r'); |
no test coverage detected