This call is similar to RedisModule_BlockClient(), however in this case we * don't just block the client, but also ask Redis to unblock it automatically * once certain keys become "ready", that is, contain more data. * * Basically this is similar to what a typical Redis command usually does, * like BLPOP or BZPOPMAX: the client blocks if it cannot be served ASAP, * and later when the key rec
| 5456 | * callback in that case). |
| 5457 | */ |
| 5458 | RedisModuleBlockedClient *RM_BlockClientOnKeys(RedisModuleCtx *ctx, RedisModuleCmdFunc reply_callback, RedisModuleCmdFunc timeout_callback, void (*free_privdata)(RedisModuleCtx*,void*), long long timeout_ms, RedisModuleString **keys, int numkeys, void *privdata) { |
| 5459 | return moduleBlockClient(ctx,reply_callback,timeout_callback,free_privdata,timeout_ms, keys,numkeys,privdata); |
| 5460 | } |
| 5461 | |
| 5462 | /* This function is used in order to potentially unblock a client blocked |
| 5463 | * on keys with RedisModule_BlockClientOnKeys(). When this function is called, |
nothing calls this directly
no test coverage detected