Skip to content
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 optional info function to redis_module macro #211

Merged
merged 4 commits into from
Jan 10, 2022

Conversation

oshadmi
Copy link
Contributor

@oshadmi oshadmi commented Jan 9, 2022

Adding a new argument to redis_module macro, which allows specifying a callback function for adding specific module information to the INFO command,
e.g., INFO MODULES,
or INFO <module_name>, for example:

127.0.0.1:6379> INFO hello
# hello_hello
hello_field:value
127.0.0.1:6379> 

(this is in addition to the already used callback function for adding stack trace on panic/crash)

src/context/mod.rs Show resolved Hide resolved
src/macros.rs Show resolved Hide resolved
@oshadmi oshadmi merged commit b8cb920 into master Jan 10, 2022
@oshadmi oshadmi deleted the omer_add_module_info branch January 10, 2022 08:10
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.

2 participants