mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 09:41:21 +00:00
Modules: RM_Milliseconds() API added.
This commit is contained in:
@ -648,6 +648,11 @@ void RM_SetModuleAttribs(RedisModuleCtx *ctx, const char *name, int ver, int api
|
||||
ctx->module = module;
|
||||
}
|
||||
|
||||
/* Return the current UNIX time in milliseconds. */
|
||||
long long RM_Milliseconds(void) {
|
||||
return mstime();
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
* Automatic memory management for modules
|
||||
* -------------------------------------------------------------------------- */
|
||||
@ -3532,4 +3537,5 @@ void moduleRegisterCoreAPI(void) {
|
||||
REGISTER_API(IsBlockedReplyRequest);
|
||||
REGISTER_API(IsBlockedTimeoutRequest);
|
||||
REGISTER_API(GetBlockedClientPrivateData);
|
||||
REGISTER_API(Milliseconds);
|
||||
}
|
||||
|
Reference in New Issue
Block a user