Helper for genModulesInfoString(): render module options as an SDS string. */
| 8707 | |
| 8708 | /* Helper for genModulesInfoString(): render module options as an SDS string. */ |
| 8709 | sds 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 |
no test coverage detected