| 160 | } |
| 161 | |
| 162 | char *redisProtocolToLuaType_Int(lua_State *lua, char *reply) { |
| 163 | char *p = strchr(reply+1,'\r'); |
| 164 | long long value; |
| 165 | |
| 166 | string2ll(reply+1,p-reply-1,&value); |
| 167 | lua_pushnumber(lua,(lua_Number)value); |
| 168 | return p+2; |
| 169 | } |
| 170 | |
| 171 | char *redisProtocolToLuaType_Bulk(lua_State *lua, char *reply) { |
| 172 | char *p = strchr(reply+1,'\r'); |
no test coverage detected