This website requires JavaScript.
Explore
Help
Sign In
caleb-brown
/
redict
Watch
1
Star
0
Fork
0
You've already forked redict
mirror of
https://codeberg.org/redict/redict.git
synced
2025-01-23 16:48:27 -05:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
7f0fae947a
redict
/
src
/
version.h
3 lines
73 B
C
Raw
Normal View
History
Unescape
Escape
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 10:21:58 -04:00
#
define REDIS_VERSION "255.255.255"
#
define REDIS_VERSION_NUM 0x00ffffff
Reference in New Issue
Copy Permalink