• Meir Shpilraien (Spielrein)'s avatar
    Module API to allow writes after key space notification hooks (#11199) · abc345ad
    Meir Shpilraien (Spielrein) authored
    ### Summary of API additions
    
    * `RedisModule_AddPostNotificationJob` - new API to call inside a key space
      notification (and on more locations in the future) and allow to add a post job as describe above.
    * New module option, `REDISMODULE_OPTIONS_ALLOW_NESTED_KEYSPACE_NOTIFICATIONS`,
      allows to disable Redis protection of nested key-space notifications.
    * `RedisModule_GetModuleOptionsAll` - gets the mask of all supported module options so a module
      will be able to check if a given option is supported by the current running Redis instance.
    
    ### Background
    
    The following PR is a proposal of handling write operations inside module key space notifications.
    After a lot of discussions we came to a conclusion that module should not perform any write
    operations on key space notification.
    
    Some examples of issues that such write operation can cause are describe on the following links:
    
    * Bad replication oreder - https://gith...
    abc345ad
runtest-moduleapi 1.62 KB