Return true if the client 'c' was blocked by a module using * RM_BlockClientOnKeys(). */
| 5600 | /* Return true if the client 'c' was blocked by a module using |
| 5601 | * RM_BlockClientOnKeys(). */ |
| 5602 | int moduleClientIsBlockedOnKeys(client *c) { |
| 5603 | RedisModuleBlockedClient *bc = (RedisModuleBlockedClient*)c->bpop.module_blocked_handle; |
| 5604 | return bc->blocked_on_keys; |
| 5605 | } |
| 5606 | |
| 5607 | /* Unblock a client blocked by `RedisModule_BlockedClient`. This will trigger |
| 5608 | * the reply callbacks to be called in order to reply to the client. |