RedisModule_GetKeyNameFromModuleKey is available since 6.0.0. How can we do the same thing if version is lower than 6.0.0.
Comment From: sundb
You can cherry-pick https://github.com/redis/redis/commit/cee6dead3c66530e8bf0b6cea455e3451d1fd0c7 and remove the codes related to keyspace events.
Comment From: RinChanNOWWW
I need to make the module be compatible with official Redis 5.0.0, so I cannot change the codes of Redis.
The only way is to add a full definition of RedisModuleKey in my module codes?
Comment From: oranagra
you can't get that info from old redis versions.. it's simply not provided. what you can do is compile with a new redismodule.h and use RMAPI_FUNC_SUPPORTED to check if that API is supported or not. this way, when the info is available, you'll have it, and when it's not available, you'll have to resort to some fallback...
Comment From: RinChanNOWWW
I see...Thank you for your suggestion.