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

Function ldbRedisProtocolToHuman_Double

src/scripting.cpp:2461–2466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2459}
2460
2461char *ldbRedisProtocolToHuman_Double(sds *o, char *reply) {
2462 char *p = strchr(reply+1,'\r');
2463 *o = sdscatlen(*o,"(double) ",9);
2464 *o = sdscatlen(*o,reply+1,p-reply-1);
2465 return p+2;
2466}
2467
2468/* Log a Redis reply as debugger output, in a human readable format.
2469 * If the resulting string is longer than 'len' plus a few more chars

Callers 1

ldbRedisProtocolToHumanFunction · 0.85

Calls 1

sdscatlenFunction · 0.85

Tested by

no test coverage detected