valkey/tests/modules
Meir Shpilraien (Spielrein) adc3183cd2
Add Module API for version and compatibility checks (#7865)
* Introduce a new API's: RM_GetContextFlagsAll, and
RM_GetKeyspaceNotificationFlagsAll that will return the
full flags mask of each feature. The module writer can
check base on this value if the Flags he needs are
supported or not.

* For each flag, introduce a new value on redismodule.h,
this value represents the LAST value and should be there
as a reminder to update it when a new value is added,
also it will be used in the code to calculate the full
flags mask (assuming flags are incrementally increasing).
In addition, stated that the module writer should not use
the LAST flag directly and he should use the GetFlagAll API's.

* Introduce a new API: RM_IsSubEventSupported, that returns for a given
event and subevent, whether or not the subevent supported.

* Introduce a new macro RMAPI_FUNC_SUPPORTED(func) that returns whether
or not a function API is supported by comparing it to NULL.

* Introduce a new API: int RM_GetServerVersion();, that will return the
current Redis version in the format 0x00MMmmpp; e.g. 0x00060008;

* Changed unstable version from 999.999.999 to 255.255.255

Co-authored-by: Oran Agra <oran@redislabs.com>
Co-authored-by: Yossi Gottlieb <yossigo@gmail.com>
2020-10-11 17:21:58 +03:00
..
auth.c Fixed some documentation 2019-12-17 07:49:21 +00:00
blockedclient.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
blockonkeys.c Fix memory corruption in moduleHandleBlockedClients 2020-04-01 12:53:26 +03:00
commandfilter.c Make module tests pass with valgrind, and fix a leak in diskless load 2019-10-24 09:45:25 +03:00
datatype.c Improve RM_ModuleTypeReplaceValue() API. 2019-12-12 18:50:11 +02:00
fork.c fix race in module api test for fork 2020-02-23 16:48:37 +02:00
getkeys.c Modules: add RM_GetCommandKeys(). 2020-10-11 16:04:14 +03:00
hooks.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
infotest.c Add RM_ServerInfoGetFieldUnsigned 2019-11-04 08:50:29 +02:00
keyspace_events.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
Makefile Modules: add RM_GetCommandKeys(). 2020-10-11 16:04:14 +03:00
misc.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
propagate.c Modify the propagate unit test to show more cases. 2020-03-31 12:04:06 +02:00
scan.c Fix RM_ScanKey module api not to return int encoded strings 2020-06-14 11:20:15 +03:00
testrdb.c fix crash in module short read test 2019-12-02 19:17:35 +02:00