MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _ModuleLoadedHandler

Function _ModuleLoadedHandler

src/module_event_handlers.c:365–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static 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
382static void _RegisterServerEvents(RedisModuleCtx *ctx) {
383 int res;

Callers

nothing calls this directly

Calls 2

Cron_StartFunction · 0.85
Cron_AddRecurringTasksFunction · 0.85

Tested by

no test coverage detected