Function export_shared_api

Source
pub unsafe fn export_shared_api(
    ctx: *mut RedisModuleCtx,
    func: *const c_void,
    name: *const c_char,
)
Expand description

§Safety

This function is safe to use as it doesn’t perform any work with the RedisModuleCtx pointer except for passing it to the redis server.

§Panics

Panics when the RedisModule_ExportSharedAPI is unavailable.