MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisProtocolToLuaType_Status

Function redisProtocolToLuaType_Status

src/scripting.cpp:185–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185char *redisProtocolToLuaType_Status(lua_State *lua, char *reply) {
186 char *p = strchr(reply+1,'\r');
187
188 lua_newtable(lua);
189 lua_pushstring(lua,"ok");
190 lua_pushlstring(lua,reply+1,p-reply-1);
191 lua_settable(lua,-3);
192 return p+2;
193}
194
195char *redisProtocolToLuaType_Error(lua_State *lua, char *reply) {
196 char *p = strchr(reply+1,'\r');

Callers 1

redisProtocolToLuaTypeFunction · 0.85

Calls 3

lua_pushstringFunction · 0.85
lua_pushlstringFunction · 0.85
lua_settableFunction · 0.85

Tested by

no test coverage detected