Block a client in the context of a blocking command, returning an handle * which will be used, later, in order to unblock the client with a call to * RedisModule_UnblockClient(). The arguments specify callback functions * and a timeout after which the client is unblocked. * * The callbacks are called in the following contexts: * * reply_callback: called after a successful RedisModule_
| 5394 | * or multiple times within the blocking command background work. |
| 5395 | */ |
| 5396 | RedisModuleBlockedClient *RM_BlockClient(RedisModuleCtx *ctx, RedisModuleCmdFunc reply_callback, RedisModuleCmdFunc timeout_callback, void (*free_privdata)(RedisModuleCtx*,void*), long long timeout_ms) { |
| 5397 | return moduleBlockClient(ctx,reply_callback,timeout_callback,free_privdata,timeout_ms, NULL,0,NULL); |
| 5398 | } |
| 5399 | |
| 5400 | /* This call is similar to RedisModule_BlockClient(), however in this case we |
| 5401 | * don't just block the client, but also ask Redis to unblock it automatically |
nothing calls this directly
no test coverage detected