Function on_load

Source
pub unsafe fn on_load<M: RedisModule>(
    ctx: *mut RedisModuleCtx,
    _: *mut *mut RedisModuleString,
    _: c_int,
) -> c_int
Expand description

ยงSafety

The ctx must be a valid ptr and this function must only be called once when redis is loading the module. Calling this function outside of the redis loading is UB.