By using keypace notification Modules API to I am using C++ to develop a module that registers for keyspace notifications, processes them.
I have Created RedisModule_OnLoad function, RedisModule_SubscribeToKeyspaceEvent And RedisModule_Init function, build it into .so file While loading the .so file in the redis server, it crashes and throws the segmentation fault ??
In what scenario the segmentation fault error occurs??
Comment From: oranagra
please post the detailed crash log, and maybe some code snippets.
Comment From: hpatro
@loGit123 Would you be able to share the details, Oran mentioned above?
Comment From: loGit123
Actually the issue is resolved , In redismodule.h,
this needs to be added as I was creating a custom module
REDISMODULE_API int (RedisModule_SubscribeToKeyspaceEvents)(RedisModuleCtx ctx, int types, RedisModuleNotificationFunc cb) REDISMODULE_ATTR;