Vedis C/C++ API Reference - Foreign Command private data.
void * vedis_context_user_data(vedis_context *pCtx);
Extract foreign command private data.
The vedis_context_user_data() interface returns a copy of the pointer that was the pUserData parameter (the last parameter) of the vedis_register_command() that originally registered the application defined command.
This routine must be called from the same thread in which the application-defined function is running.
Foreign command call context.
A copy of the pointer untouched or NULL if no private data were associated within this command.