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

Function rewriteConfigNotifykeyspaceeventsOption

app/redis-6.2.6/src/config.c:1461–1472  ·  view source on GitHub ↗

Rewrite the notify-keyspace-events option. */

Source from the content-addressed store, hash-verified

1459
1460/* Rewrite the notify-keyspace-events option. */
1461void rewriteConfigNotifykeyspaceeventsOption(struct rewriteConfigState *state) {
1462 int force = server.notify_keyspace_events != 0;
1463 char *option = "notify-keyspace-events";
1464 sds line, flags;
1465
1466 flags = keyspaceEventsFlagsToString(server.notify_keyspace_events);
1467 line = sdsnew(option);
1468 line = sdscatlen(line, " ", 1);
1469 line = sdscatrepr(line, flags, sdslen(flags));
1470 sdsfree(flags);
1471 rewriteConfigRewriteLine(state,option,line,force);
1472}
1473
1474/* Rewrite the client-output-buffer-limit option. */
1475void rewriteConfigClientoutputbufferlimitOption(struct rewriteConfigState *state) {

Callers 1

rewriteConfigFunction · 0.85

Calls 7

sdsnewFunction · 0.85
sdscatlenFunction · 0.85
sdscatreprFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85

Tested by

no test coverage detected