MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_BlockClient

Function RM_BlockClient

app/redis-6.2.6/src/module.c:5396–5398  ·  view source on GitHub ↗

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_

Source from the content-addressed store, hash-verified

5394 * or multiple times within the blocking command background work.
5395 */
5396RedisModuleBlockedClient *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

Callers

nothing calls this directly

Calls 1

moduleBlockClientFunction · 0.85

Tested by

no test coverage detected