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

feat: ability force custom scripts to be readOnly and execute on slaves #1057

Merged
merged 1 commit into from Feb 19, 2020

Conversation

technicallyfeasible
Copy link
Contributor

This introduces a new option for defineCommand: readOnly

It tells ioredis that this command is safe to be executed on slaves and allows the option scaleReads to also apply to the custom command.

@luin luin merged commit a24c3ab into redis:master Feb 19, 2020
ioredis-robot pushed a commit that referenced this pull request Feb 19, 2020
# [4.16.0](v4.15.1...v4.16.0) (2020-02-19)

### Features

* ability force custom scripts to be readOnly and execute on slaves ([#1057](#1057)) ([a24c3ab](a24c3ab))
@ioredis-robot
Copy link
Collaborator

🎉 This PR is included in version 4.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

janus-dev87 added a commit to janus-dev87/ioredis-work that referenced this pull request Mar 1, 2024
# [4.16.0](redis/ioredis@v4.15.1...v4.16.0) (2020-02-19)

### Features

* ability force custom scripts to be readOnly and execute on slaves ([#1057](redis/ioredis#1057)) ([a24c3ab](redis/ioredis@a24c3ab))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants