-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add valkeymodule.h
, ABI compatible with redismodule
#146
Comments
Should we move the test modules to operate on valkey namespace API(s) ? |
I think it might be good to keep them there for compatibility testing. I wonder if there is an easy way to generate modules for both. |
I think tests can be a late binding decision. We get the coverage for both the REDISMODULE_ and VALKEY_MODULE namespaces this way. |
@PingXie I was asking specifically for @zuiderkwast 's
|
I think testing REDISMODULE_ provides the superset coverage because how the redirection is done |
I agree. I would like to add tests for the VALKEYMODULE_, but it honestly bothers me a bit less than the lua ones. We did find a bug with adding tests for LUA, but I would be okay omitting it for now to prioritize getting a release somewhat finalized this week. |
Fix #146 Removed REDISMODULE_ prefixes from the core source code to align with the new SERVERMODULE_ naming convention. Added a new 'redismodule.h' header file to ensure full backward compatibility with existing modules. This compatibility layer maps all legacy REDISMODULE_ prefixed identifiers to their new SERVERMODULE_ equivalents, allowing existing Redis modules to function without modification. --------- Signed-off-by: Ping Xie <pingxie@google.com>
…ey-io#194) Fix valkey-io#146 Removed REDISMODULE_ prefixes from the core source code to align with the new SERVERMODULE_ naming convention. Added a new 'redismodule.h' header file to ensure full backward compatibility with existing modules. This compatibility layer maps all legacy REDISMODULE_ prefixed identifiers to their new SERVERMODULE_ equivalents, allowing existing Redis modules to function without modification. --------- Signed-off-by: Ping Xie <pingxie@google.com>
…ey-io#194) Fix valkey-io#146 Removed REDISMODULE_ prefixes from the core source code to align with the new SERVERMODULE_ naming convention. Added a new 'redismodule.h' header file to ensure full backward compatibility with existing modules. This compatibility layer maps all legacy REDISMODULE_ prefixed identifiers to their new SERVERMODULE_ equivalents, allowing existing Redis modules to function without modification. --------- Signed-off-by: Ping Xie <pingxie@google.com>
There's one macro we missed when renaming:
|
redismodule.h
with the existing names likeREDISMODULE_*
,RedisModuleString
,RedisModule_CreateString()
.valkeymodule.h
with the same API just everything renamed to Valkey. Make sure it is ABI compatible. (Test it in some way.)The text was updated successfully, but these errors were encountered: