Return true if the client 'c' was blocked by a module using * RM_BlockClientOnKeys(). */
| 5491 | /* Return true if the client 'c' was blocked by a module using |
| 5492 | * RM_BlockClientOnKeys(). */ |
| 5493 | int moduleClientIsBlockedOnKeys(client *c) { |
| 5494 | RedisModuleBlockedClient *bc = c->bpop.module_blocked_handle; |
| 5495 | return bc->blocked_on_keys; |
| 5496 | } |
| 5497 | |
| 5498 | /* Unblock a client blocked by `RedisModule_BlockedClient`. This will trigger |
| 5499 | * the reply callbacks to be called in order to reply to the client. |