Skip to content

Conversation

@max-frank
Copy link
Contributor

WHAT

Add support for script commands read only variants (EVAL_RO and EVALSHA_RO). The execution logic is the same as the standard commands, but these command will error if any command writing to redis is invoked.

Additionally

  • Added IsRegisteredCommand allowing to check if a command is registered on the miniredis server. This is used to ensure unknown command errors are correctly returned instead of read only mode errors, but could also be used later for asserting new commands are loaded after module load commands are executed.
  • Fixed a minor bug with pcall not handling unknown command correctly

WHY

To support the new commands

Note

This PR depends on #415 and will be rebased once it is merged

@max-frank max-frank force-pushed the add-evalro-support branch 5 times, most recently from 4025291 to 957d2d2 Compare September 22, 2025 05:38
@max-frank max-frank marked this pull request as ready for review September 24, 2025 10:17
Signed-off-by: Maximilian Frank <1375575+max-frank@users.noreply.github.com>
@alicebob
Copy link
Owner

hi @max-frank , thanks for the previous PR, what's the status of this one? No rush, just curious.

@max-frank
Copy link
Contributor Author

hi @max-frank , thanks for the previous PR, what's the status of this one? No rush, just curious.

Ah this one should be good to go as well unless I missed something on regards to the _RO spec

@alicebob
Copy link
Owner

ok, thanks! I'll check later.

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