Function on_unload

Source
pub unsafe fn on_unload<M: RedisModule>(ctx: *mut RedisModuleCtx) -> c_int
Expand description

ยงSafety

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