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

Function genModulesInfoStringRenderModuleOptions

app/redis-6.2.6/src/module.c:8709–8716  ·  view source on GitHub ↗

Helper for genModulesInfoString(): render module options as an SDS string. */

Source from the content-addressed store, hash-verified

8707
8708/* Helper for genModulesInfoString(): render module options as an SDS string. */
8709sds genModulesInfoStringRenderModuleOptions(struct RedisModule *module) {
8710 sds output = sdsnew("[");
8711 if (module->options & REDISMODULE_OPTIONS_HANDLE_IO_ERRORS)
8712 output = sdscat(output,"handle-io-errors|");
8713 output = sdstrim(output,"|");
8714 output = sdscat(output,"]");
8715 return output;
8716}
8717
8718
8719/* Helper function for the INFO command: adds loaded modules as to info's

Callers 1

genModulesInfoStringFunction · 0.85

Calls 3

sdsnewFunction · 0.85
sdscatFunction · 0.85
sdstrimFunction · 0.85

Tested by

no test coverage detected