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

Function redisProtocolToLuaType_Error

src/scripting.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195char *redisProtocolToLuaType_Error(lua_State *lua, char *reply) {
196 char *p = strchr(reply+1,'\r');
197
198 lua_newtable(lua);
199 lua_pushstring(lua,"err");
200 lua_pushlstring(lua,reply+1,p-reply-1);
201 lua_settable(lua,-3);
202 return p+2;
203}
204
205char *redisProtocolToLuaType_Aggregate(lua_State *lua, char *reply, int atype) {
206 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