MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / moduleClientIsBlockedOnKeys

Function moduleClientIsBlockedOnKeys

src/module.cpp:5602–5605  ·  view source on GitHub ↗

Return true if the client 'c' was blocked by a module using * RM_BlockClientOnKeys(). */

Source from the content-addressed store, hash-verified

5600/* Return true if the client 'c' was blocked by a module using
5601 * RM_BlockClientOnKeys(). */
5602int 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.

Callers 1

unblockClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected