| 6513 | } |
| 6514 | |
| 6515 | static int RedisGearsPy_DumpRequirements(RedisModuleCtx *ctx, RedisModuleString **argv, int argc){ |
| 6516 | |
| 6517 | RedisModule_ReplyWithArray(ctx, Gears_dictSize(RequirementsDict)); |
| 6518 | Gears_dictIterator *iter = Gears_dictGetIterator(RequirementsDict); |
| 6519 | Gears_dictEntry *entry = NULL; |
| 6520 | while((entry = Gears_dictNext(iter))){ |
| 6521 | PythonRequirementCtx* req = Gears_dictGetVal(entry); |
| 6522 | RedisGearsPy_SendReqMetaData(ctx, req); |
| 6523 | } |
| 6524 | Gears_dictReleaseIterator(iter); |
| 6525 | |
| 6526 | return REDISMODULE_OK; |
| 6527 | } |
| 6528 | |
| 6529 | static int RedisGearsPy_ImportRequirement(RedisModuleCtx *ctx, RedisModuleString **argv, int argc){ |
| 6530 | VERIFY_CLUSTER_INITIALIZE(ctx); |
nothing calls this directly
no test coverage detected