Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e4b3a257
Unverified
Commit
e4b3a257
authored
Dec 30, 2021
by
Viktor Söderqvist
Committed by
GitHub
Dec 30, 2021
Browse files
Modules: Mark all APIs non-experimental (#9983)
These exist for quite some time, and are no longer experimental
parent
4836ae32
Changes
15
Hide whitespace changes
Inline
Side-by-side
src/redismodule.h
View file @
e4b3a257
...
@@ -876,9 +876,6 @@ REDISMODULE_API int (*RedisModule_SetCommandKeySpecBeginSearchKeyword)(RedisModu
...
@@ -876,9 +876,6 @@ REDISMODULE_API int (*RedisModule_SetCommandKeySpecBeginSearchKeyword)(RedisModu
REDISMODULE_API
int
(
*
RedisModule_SetCommandKeySpecFindKeysRange
)(
RedisModuleCommand
*
command
,
int
spec_id
,
int
lastkey
,
int
keystep
,
int
limit
)
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
;
REDISMODULE_API
int
(
*
RedisModule_SetCommandKeySpecFindKeysKeynum
)(
RedisModuleCommand
*
command
,
int
spec_id
,
int
keynumidx
,
int
firstkey
,
int
keystep
)
REDISMODULE_ATTR
;
/* Experimental APIs */
#ifdef REDISMODULE_EXPERIMENTAL_API
#define REDISMODULE_EXPERIMENTAL_API_VERSION 3
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
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
;
REDISMODULE_API
int
(
*
RedisModule_UnblockClient
)(
RedisModuleBlockedClient
*
bc
,
void
*
privdata
)
REDISMODULE_ATTR
;
REDISMODULE_API
int
(
*
RedisModule_IsBlockedReplyRequest
)(
RedisModuleCtx
*
ctx
)
REDISMODULE_ATTR
;
REDISMODULE_API
int
(
*
RedisModule_IsBlockedReplyRequest
)(
RedisModuleCtx
*
ctx
)
REDISMODULE_ATTR
;
...
@@ -950,7 +947,6 @@ REDISMODULE_API int (*RedisModule_DefragCursorSet)(RedisModuleDefragCtx *ctx, un
...
@@ -950,7 +947,6 @@ REDISMODULE_API int (*RedisModule_DefragCursorSet)(RedisModuleDefragCtx *ctx, un
REDISMODULE_API
int
(
*
RedisModule_DefragCursorGet
)(
RedisModuleDefragCtx
*
ctx
,
unsigned
long
*
cursor
)
REDISMODULE_ATTR
;
REDISMODULE_API
int
(
*
RedisModule_DefragCursorGet
)(
RedisModuleDefragCtx
*
ctx
,
unsigned
long
*
cursor
)
REDISMODULE_ATTR
;
REDISMODULE_API
int
(
*
RedisModule_GetDbIdFromDefragCtx
)(
RedisModuleDefragCtx
*
ctx
)
REDISMODULE_ATTR
;
REDISMODULE_API
int
(
*
RedisModule_GetDbIdFromDefragCtx
)(
RedisModuleDefragCtx
*
ctx
)
REDISMODULE_ATTR
;
REDISMODULE_API
const
RedisModuleString
*
(
*
RedisModule_GetKeyNameFromDefragCtx
)(
RedisModuleDefragCtx
*
ctx
)
REDISMODULE_ATTR
;
REDISMODULE_API
const
RedisModuleString
*
(
*
RedisModule_GetKeyNameFromDefragCtx
)(
RedisModuleDefragCtx
*
ctx
)
REDISMODULE_ATTR
;
#endif
#define RedisModule_IsAOFClient(id) ((id) == UINT64_MAX)
#define RedisModule_IsAOFClient(id) ((id) == UINT64_MAX)
...
@@ -1198,8 +1194,6 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
...
@@ -1198,8 +1194,6 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
REDISMODULE_GET_API
(
SetCommandKeySpecBeginSearchKeyword
);
REDISMODULE_GET_API
(
SetCommandKeySpecBeginSearchKeyword
);
REDISMODULE_GET_API
(
SetCommandKeySpecFindKeysRange
);
REDISMODULE_GET_API
(
SetCommandKeySpecFindKeysRange
);
REDISMODULE_GET_API
(
SetCommandKeySpecFindKeysKeynum
);
REDISMODULE_GET_API
(
SetCommandKeySpecFindKeysKeynum
);
#ifdef REDISMODULE_EXPERIMENTAL_API
REDISMODULE_GET_API
(
GetThreadSafeContext
);
REDISMODULE_GET_API
(
GetThreadSafeContext
);
REDISMODULE_GET_API
(
GetDetachedThreadSafeContext
);
REDISMODULE_GET_API
(
GetDetachedThreadSafeContext
);
REDISMODULE_GET_API
(
FreeThreadSafeContext
);
REDISMODULE_GET_API
(
FreeThreadSafeContext
);
...
@@ -1271,7 +1265,6 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
...
@@ -1271,7 +1265,6 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int
REDISMODULE_GET_API
(
DefragCursorGet
);
REDISMODULE_GET_API
(
DefragCursorGet
);
REDISMODULE_GET_API
(
GetKeyNameFromDefragCtx
);
REDISMODULE_GET_API
(
GetKeyNameFromDefragCtx
);
REDISMODULE_GET_API
(
GetDbIdFromDefragCtx
);
REDISMODULE_GET_API
(
GetDbIdFromDefragCtx
);
#endif
if
(
RedisModule_IsModuleNameBusy
&&
RedisModule_IsModuleNameBusy
(
name
))
return
REDISMODULE_ERR
;
if
(
RedisModule_IsModuleNameBusy
&&
RedisModule_IsModuleNameBusy
(
name
))
return
REDISMODULE_ERR
;
RedisModule_SetModuleAttribs
(
ctx
,
name
,
ver
,
apiver
);
RedisModule_SetModuleAttribs
(
ctx
,
name
,
ver
,
apiver
);
...
...
tests/modules/aclcheck.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <errno.h>
#include <errno.h>
...
...
tests/modules/auth.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
// A simple global user
// A simple global user
...
...
tests/modules/basics.c
View file @
e4b3a257
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
tests/modules/blockedclient.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <assert.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
...
...
tests/modules/blockonbackground.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#define _XOPEN_SOURCE 700
#define _XOPEN_SOURCE 700
#include "redismodule.h"
#include "redismodule.h"
#include <stdio.h>
#include <stdio.h>
...
...
tests/modules/blockonkeys.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <string.h>
#include <string.h>
...
...
tests/modules/commandfilter.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <string.h>
#include <string.h>
...
...
tests/modules/defragtest.c
View file @
e4b3a257
/* A module that implements defrag callback mechanisms.
/* A module that implements defrag callback mechanisms.
*/
*/
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <stdlib.h>
#include <stdlib.h>
...
...
tests/modules/fork.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
/* define macros for having usleep */
/* define macros for having usleep */
#define _BSD_SOURCE
#define _BSD_SOURCE
...
...
tests/modules/getkeys.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <strings.h>
#include <strings.h>
...
...
tests/modules/keyspace_events.c
View file @
e4b3a257
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <stdio.h>
#include <stdio.h>
...
...
tests/modules/misc.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <string.h>
#include <string.h>
...
...
tests/modules/propagate.c
View file @
e4b3a257
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
#include <pthread.h>
#include <pthread.h>
#include <errno.h>
#include <errno.h>
...
...
tests/modules/timer.c
View file @
e4b3a257
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
#include "redismodule.h"
static
void
timer_callback
(
RedisModuleCtx
*
ctx
,
void
*
data
)
static
void
timer_callback
(
RedisModuleCtx
*
ctx
,
void
*
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment