diff options
author | Viktor Söderqvist <viktor.soderqvist@est.tech> | 2022-01-24 14:02:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 15:02:07 +0200 |
commit | 857dc5bacd85a9a4c31b7ef9eb350690ca0a85ad (patch) | |
tree | 81464562b4c96b196fa723bc90d060e85e4cba3b /src/redismodule.h | |
parent | 6dc3f09cb9bc219ddf91c8ebfa6a7e1336663325 (diff) | |
download | redis-857dc5bacd85a9a4c31b7ef9eb350690ca0a85ad.tar.gz |
Disable keyspec module API in 7.0 RC1 (#10135)
The keyspec API is not yet released and there is a plan to change it
in #10108, which is going to be included in RC2. Therefore, we hide
it in RC1 to avoid introducing a breaking change in RC2.
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/redismodule.h')
-rw-r--r-- | src/redismodule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/redismodule.h b/src/redismodule.h index 4bcad5111..3255fcc30 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -924,11 +924,14 @@ REDISMODULE_API int (*RedisModule_GetKeyspaceNotificationFlagsAll)() REDISMODULE REDISMODULE_API int (*RedisModule_IsSubEventSupported)(RedisModuleEvent event, uint64_t subevent) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_GetServerVersion)() REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_GetTypeMethodVersion)() REDISMODULE_ATTR; +#ifdef INCLUDE_UNRELEASED_KEYSPEC_API REDISMODULE_API int (*RedisModule_AddCommandKeySpec)(RedisModuleCommand *command, const char *specflags, int *spec_id) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_SetCommandKeySpecBeginSearchIndex)(RedisModuleCommand *command, int spec_id, int index) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_SetCommandKeySpecBeginSearchKeyword)(RedisModuleCommand *command, int spec_id, const char *keyword, int startfrom) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_SetCommandKeySpecFindKeysRange)(RedisModuleCommand *command, int spec_id, int lastkey, int keystep, int limit) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_SetCommandKeySpecFindKeysKeynum)(RedisModuleCommand *command, int spec_id, int keynumidx, int firstkey, int keystep) REDISMODULE_ATTR; +#endif + REDISMODULE_API void (*RedisModule_Yield)(RedisModuleCtx *ctx, int flags, const char *busy_reply) REDISMODULE_ATTR; REDISMODULE_API RedisModuleBlockedClient * (*RedisModule_BlockClient)(RedisModuleCtx *ctx, RedisModuleCmdFunc reply_callback, RedisModuleCmdFunc timeout_callback, void (*free_privdata)(RedisModuleCtx*,void*), long long timeout_ms) REDISMODULE_ATTR; REDISMODULE_API int (*RedisModule_UnblockClient)(RedisModuleBlockedClient *bc, void *privdata) REDISMODULE_ATTR; @@ -1247,11 +1250,13 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int REDISMODULE_GET_API(IsSubEventSupported); REDISMODULE_GET_API(GetServerVersion); REDISMODULE_GET_API(GetTypeMethodVersion); +#ifdef INCLUDE_UNRELEASED_KEYSPEC_API REDISMODULE_GET_API(AddCommandKeySpec); REDISMODULE_GET_API(SetCommandKeySpecBeginSearchIndex); REDISMODULE_GET_API(SetCommandKeySpecBeginSearchKeyword); REDISMODULE_GET_API(SetCommandKeySpecFindKeysRange); REDISMODULE_GET_API(SetCommandKeySpecFindKeysKeynum); +#endif REDISMODULE_GET_API(Yield); REDISMODULE_GET_API(GetThreadSafeContext); REDISMODULE_GET_API(GetDetachedThreadSafeContext); |