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

Implement scripting API #158

Closed
7 tasks done
mijicd opened this issue Nov 20, 2020 · 3 comments · Fixed by #750
Closed
7 tasks done

Implement scripting API #158

mijicd opened this issue Nov 20, 2020 · 3 comments · Fixed by #750
Assignees
Labels
enhancement New feature or request zio-hackathon ZIO Hackathon 2020

Comments

@mijicd
Copy link
Member

mijicd commented Nov 20, 2020

Extracted from this comment authored by @regis-leray.

Commands

  • EVAL script numkeys key [key ...] arg [arg ...] Execute a Lua script server side
  • EVALSHA sha1 numkeys key [key ...] arg [arg ...] Execute a Lua script server side
  • SCRIPT DEBUG YES|SYNC|NO Set the debug mode for executed scripts.
  • SCRIPT EXISTS sha1 [sha1 ...] Check existence of scripts in the script cache.
  • SCRIPT FLUSH Remove all the scripts from the script cache.
  • SCRIPT KILL Kill the script currently in execution.
  • SCRIPT LOAD script Load the specified Lua script into the script cache.

Tips

  • Define the API in zio.redis.api.
  • Command-specific options should be defined in zio.redis.options.
  • Additional inputs and outputs can be defined in zio.redis.Input and zio.redis.Output, respectively.
  • Redis API evolves, therefore the commands listed above might be slightly changed. Double check the official docs before starting with implementation.
  • Use telnet to understand command protocol details.
  • Write inputs and outputs tests in zio.redis.InputSpec and zio.redis.OutputSpec, respectively.
  • Write integration tests by expanding the zio.redis.ApiSpec.
  • If you feel that the pull request size is growing out of control, feel free to split it but make sure to link this issue in each of the related PRs.
@mijicd
Copy link
Member Author

mijicd commented Jan 6, 2022

(Partially) implemented by @anatolysergeev in #269

@mijicd mijicd closed this as completed Jan 6, 2022
@mijicd mijicd reopened this Jan 6, 2022
@anatolysergeev anatolysergeev removed their assignment Jan 7, 2022
@drmarjanovic
Copy link
Collaborator

@mijicd, can I work on this one?

@mijicd
Copy link
Member Author

mijicd commented Feb 7, 2023

All yours!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request zio-hackathon ZIO Hackathon 2020
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants