| 363 | } |
| 364 | |
| 365 | static void _ModuleLoadedHandler |
| 366 | ( |
| 367 | RedisModuleCtx *ctx, |
| 368 | RedisModuleEvent eid, |
| 369 | uint64_t subevent, |
| 370 | void *data |
| 371 | ) { |
| 372 | if(subevent == REDISMODULE_SUBEVENT_MODULE_LOADED) { |
| 373 | // see which module been loaded |
| 374 | RedisModuleModuleChange *pdata = (RedisModuleModuleChange*)data; |
| 375 | if(strcmp(pdata->module_name, "graph") == 0) { |
| 376 | Cron_Start(); |
| 377 | Cron_AddRecurringTasks(); |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | static void _RegisterServerEvents(RedisModuleCtx *ctx) { |
| 383 | int res; |
nothing calls this directly
no test coverage detected