| /f-stack/app/redis-5.0.5/src/ |
| H A D | redismodule.h | 147 typedef struct RedisModuleCtx RedisModuleCtx; typedef 171 typedef void (*RedisModuleTimerProc)(RedisModuleCtx *ctx, void *data); 200 int REDISMODULE_API_FUNC(RedisModule_WrongArity)(RedisModuleCtx *ctx); 202 int REDISMODULE_API_FUNC(RedisModule_GetSelectedDb)(RedisModuleCtx *ctx); 203 int REDISMODULE_API_FUNC(RedisModule_SelectDb)(RedisModuleCtx *ctx, int newid); 229 int REDISMODULE_API_FUNC(RedisModule_ReplyWithNull)(RedisModuleCtx *ctx); 234 void REDISMODULE_API_FUNC(RedisModule_AutoMemory)(RedisModuleCtx *ctx); 236 int REDISMODULE_API_FUNC(RedisModule_ReplicateVerbatim)(RedisModuleCtx *ctx); 261 int REDISMODULE_API_FUNC(RedisModule_IsKeysPositionRequest)(RedisModuleCtx *ctx); 262 void REDISMODULE_API_FUNC(RedisModule_KeyAtPos)(RedisModuleCtx *ctx, int pos); [all …]
|
| H A D | module.c | 116 struct RedisModuleCtx { struct 136 typedef struct RedisModuleCtx RedisModuleCtx; argument 149 RedisModuleCtx *ctx; 197 RedisModuleCtx *ctx; 300 void autoMemoryCollect(RedisModuleCtx *ctx); 349 void poolAllocRelease(RedisModuleCtx *ctx) { in poolAllocRelease() 781 void RM_AutoMemory(RedisModuleCtx *ctx) { in RM_AutoMemory() 1076 int RM_WrongArity(RedisModuleCtx *ctx) { in RM_WrongArity() 1258 int RM_ReplyWithNull(RedisModuleCtx *ctx) { in RM_ReplyWithNull() 1399 int RM_GetSelectedDb(RedisModuleCtx *ctx) { in RM_GetSelectedDb() [all …]
|
| H A D | server.h | 496 struct RedisModuleCtx; 554 struct RedisModuleCtx *ctx; /* Optional context, see RM_GetContextFromIO()*/ 1405 void moduleFreeContext(struct RedisModuleCtx *ctx);
|
| /f-stack/app/redis-5.0.5/src/modules/ |
| H A D | helloblock.c | 42 int HelloBlock_Reply(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloBlock_Reply() 50 int HelloBlock_Timeout(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloBlock_Timeout() 57 void HelloBlock_FreeData(RedisModuleCtx *ctx, void *privdata) { in HelloBlock_FreeData() 85 void HelloBlock_Disconnected(RedisModuleCtx *ctx, RedisModuleBlockedClient *bc) { in HelloBlock_Disconnected() 97 int HelloBlock_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloBlock_RedisCommand() 141 RedisModuleCtx *ctx = RedisModule_GetThreadSafeContext(bc); in HelloKeys_ThreadMain() 181 int HelloKeys_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloKeys_RedisCommand() 204 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|
| H A D | helloworld.c | 48 int HelloSimple_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloSimple_RedisCommand() 61 int HelloPushNative_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in HelloPushNative_RedisCommand() 80 int HelloPushCall_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in HelloPushCall_RedisCommand() 96 int HelloPushCall2_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in HelloPushCall2_RedisCommand() 111 int HelloListSumLen_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in HelloListSumLen_RedisCommand() 134 int HelloListSplice_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloListSplice_RedisCommand() 240 int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in HelloRepl1_RedisCommand() 278 int HelloRepl2_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloRepl2_RedisCommand() 468 int HelloHCopy_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloHCopy_RedisCommand() 509 int HelloLeftPad_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloLeftPad_RedisCommand() [all …]
|
| H A D | testmodule.c | 51 int TestCall(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestCall() 81 int TestStringAppend(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestStringAppend() 93 int TestStringAppendAM(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestStringAppendAM() 107 int TestStringPrintf(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestStringPrintf() 124 int failTest(RedisModuleCtx *ctx, const char *msg) { in failTest() 129 int TestUnlink(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestUnlink() 158 int NotifyCallback(RedisModuleCtx *ctx, int type, const char *event, in NotifyCallback() 170 int TestNotifications(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestNotifications() 238 int TestCtxFlags(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestCtxFlags() 356 int TestIt(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TestIt() [all …]
|
| H A D | hellocluster.c | 44 int PingallCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in PingallCommand_RedisCommand() 53 int ListCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in ListCommand_RedisCommand() 76 void PingReceiver(RedisModuleCtx *ctx, const char *sender_id, uint8_t type, const unsigned char *pa… in PingReceiver() 84 void PongReceiver(RedisModuleCtx *ctx, const char *sender_id, uint8_t type, const unsigned char *pa… in PongReceiver() 91 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|
| H A D | hellodict.c | 48 int cmd_SET(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in cmd_SET() 61 int cmd_GET(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in cmd_GET() 75 int cmd_KEYRANGE(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in cmd_KEYRANGE() 109 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|
| H A D | hellotimer.c | 41 void timerHandler(RedisModuleCtx *ctx, void *data) { in timerHandler() 48 int TimerCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in TimerCommand_RedisCommand() 64 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|
| H A D | hellotype.c | 103 int HelloTypeInsert_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloTypeInsert_RedisCommand() 139 int HelloTypeRange_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloTypeRange_RedisCommand() 175 int HelloTypeLen_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in HelloTypeLen_RedisCommand() 253 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|
| /f-stack/app/redis-5.0.5/tests/modules/ |
| H A D | commandfilter.c | 15 int CommandFilter_UnregisterCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in CommandFilter_UnregisterCommand() 26 int CommandFilter_PingCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in CommandFilter_PingCommand() 42 int CommandFilter_LogCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) in CommandFilter_LogCommand() 119 int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { in RedisModule_OnLoad()
|