MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addReplyStreamID

Function addReplyStreamID

app/redis-6.2.6/src/t_stream.c:1350–1353  ·  view source on GitHub ↗

Emit a reply in the client output buffer by formatting a Stream ID * in the standard - format, using the simple string protocol * of REPL. */

Source from the content-addressed store, hash-verified

1348 * in the standard <ms>-<seq> format, using the simple string protocol
1349 * of REPL. */
1350void addReplyStreamID(client *c, streamID *id) {
1351 sds replyid = sdscatfmt(sdsempty(),"%U-%U",id->ms,id->seq);
1352 addReplyBulkSds(c,replyid);
1353}
1354
1355void setDeferredReplyStreamID(client *c, void *dr, streamID *id) {
1356 sds replyid = sdscatfmt(sdsempty(),"%U-%U",id->ms,id->seq);

Callers 8

streamReplyWithRangeFunction · 0.85
xaddCommandFunction · 0.85
xpendingCommandFunction · 0.85
xclaimCommandFunction · 0.85
xautoclaimCommandFunction · 0.85
xinfoReplyWithStreamInfoFunction · 0.85
xinfoCommandFunction · 0.85

Calls 3

sdscatfmtFunction · 0.85
sdsemptyFunction · 0.85
addReplyBulkSdsFunction · 0.85

Tested by

no test coverage detected