diff options
author | antirez <antirez@gmail.com> | 2018-04-09 12:17:19 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-04-09 12:17:19 +0200 |
commit | eaafea482870c839adc60d8453cbc0c1efb062c5 (patch) | |
tree | 9b1ff7a405957e3559c4437475b3077afd4957d5 | |
parent | 49e098234abc2c5cc7042c931e3d611b0ae2055d (diff) | |
download | redis-eaafea482870c839adc60d8453cbc0c1efb062c5.tar.gz |
Modules API: experimental APIs version.
This way it is possible to use conditional compilation to be compatible
with a larger amount of Redis versions, however note that this breaks
binary compatibiltiy, so the module must be compiled with the
corresponding redismodule.h file depending on the version of Redis
targeted.
-rw-r--r-- | src/redismodule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redismodule.h b/src/redismodule.h index 4ba4be3b9..51752d9ad 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -271,6 +271,7 @@ void REDISMODULE_API_FUNC(RedisModule_DigestEndSequence)(RedisModuleDigest *md); /* Experimental APIs */ #ifdef REDISMODULE_EXPERIMENTAL_API +#define REDISMODULE_EXPERIMENTAL_API_VERSION 2 RedisModuleBlockedClient *REDISMODULE_API_FUNC(RedisModule_BlockClient)(RedisModuleCtx *ctx, RedisModuleCmdFunc reply_callback, RedisModuleCmdFunc timeout_callback, void (*free_privdata)(RedisModuleCtx*,void*), long long timeout_ms); int REDISMODULE_API_FUNC(RedisModule_UnblockClient)(RedisModuleBlockedClient *bc, void *privdata); int REDISMODULE_API_FUNC(RedisModule_IsBlockedReplyRequest)(RedisModuleCtx *ctx); |