Skip to content

Conversation

@JonasKruckenberg
Copy link

This change adds the RedisKey::name_raw method which allows access to the raw RedisModuleString name of this key.

This change adds the `RedisKey::name_raw` method which allows access to the raw `RedisModuleString` name of this key.
Copy link

@GlenDC GlenDC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just minor question.


/// # Panics
///
/// Will panic if `RedisModule_ModuleTypeGetValue` is missing in redismodule.h
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that a panic and not a compile error?

Copy link
Author

@JonasKruckenberg JonasKruckenberg Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dynamic linking, a redis module is compiled into a cdylib that links dynamically against the module API exposed by the redis server. We therefore have to unwrap on the dynamic library function pointer (bc it might not exist)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants