Adding server.call/pcall option to LUA scripting. (#136)#213
Merged
Conversation
madolson
reviewed
Apr 4, 2024
This commit does not remove redis.call/pcall just yet. It also does not rename Redis in error messages such as "Please specify at least one argument for this redis lib call". This allows users to maintain full backwards compatibility while introducing an option to use server.call for new code. Signed-off-by: Parth Patel <661497+parthpatel@users.noreply.github.com>
madolson
reviewed
Apr 4, 2024
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
zuiderkwast
reviewed
Apr 4, 2024
madolson
reviewed
Apr 4, 2024
hpatro
reviewed
Apr 4, 2024
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson
reviewed
Apr 4, 2024
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson
approved these changes
Apr 6, 2024
madolson
added a commit
to madolson/valkey
that referenced
this pull request
Apr 7, 2024
…lkey-io#213) This commit does not remove redis.call/pcall just yet. It also does not rename Redis in error messages such as "Please specify at least one argument for this redis lib call". This allows users to maintain full backwards compatibility while introducing an option to use server.call for new code. I verified that the unit tests pass. Also manually verified that the redis-server responds to server.call invocations within lua scripting. Also verified that function registration works as expected. ``` [ok]: EVAL - is Lua able to call Redis API? (0 ms) [ok]: EVAL - is Lua able to call Server API? (1 ms) [ok]: EVAL - No arguments to redis.call/pcall is considered an error (0 ms) [ok]: EVAL - No arguments to server.call/pcall is considered an error (1 ms) ``` --------- Signed-off-by: Parth Patel <661497+parthpatel@users.noreply.github.com> Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
PatrickJS
pushed a commit
to PatrickJS/placeholderkv
that referenced
this pull request
Apr 24, 2024
…lkey-io#213) This commit does not remove redis.call/pcall just yet. It also does not rename Redis in error messages such as "Please specify at least one argument for this redis lib call". This allows users to maintain full backwards compatibility while introducing an option to use server.call for new code. I verified that the unit tests pass. Also manually verified that the redis-server responds to server.call invocations within lua scripting. Also verified that function registration works as expected. ``` [ok]: EVAL - is Lua able to call Redis API? (0 ms) [ok]: EVAL - is Lua able to call Server API? (1 ms) [ok]: EVAL - No arguments to redis.call/pcall is considered an error (0 ms) [ok]: EVAL - No arguments to server.call/pcall is considered an error (1 ms) ``` --------- Signed-off-by: Parth Patel <661497+parthpatel@users.noreply.github.com> Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
HLFH
pushed a commit
to HLFH/searxng
that referenced
this pull request
May 28, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jun 24, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jun 25, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jun 28, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jun 29, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jun 30, 2025
Related to issue valkey-io/valkey#136 and PR valkey-io/valkey#213
return42
pushed a commit
to return42/searxng
that referenced
this pull request
Jul 1, 2025
For backward compatibility to old (existing) Redis DB - searxng#4795 (comment) Related to issue - valkey-io/valkey#136 and - PR valkey-io/valkey#213
return42
pushed a commit
to HLFH/searxng
that referenced
this pull request
Jul 8, 2025
For backward compatibility to old (existing) Redis DB - searxng#4795 (comment) Related to issue - valkey-io/valkey#136 and - PR valkey-io/valkey#213
bjosv
added a commit
to bjosv/valkey
that referenced
this pull request
Aug 20, 2025
Squashed 'deps/libvalkey/' changes from abcd27fbf..d95a5ee9a 9e10acbf7 Fix duplicate Acks for RDMA events. (valkey-io#229) 1eadedf48 Remove the unused valDup API from dict a449f0ea1 Don't expose internal functions in shared libraries (valkey-io#205) 178e350c7 Cluster code cleanup (valkey-io#216) 4020396c8 Fix `unused-parameter` warning when building with `NDEBUG` (valkey-io#212) 279125e22 Spelling (valkey-io#213) 99aa158bc Use existing connections for blocking slotmap updates (valkey-io#199) f670346b9 Only install headers for `TLS` and `RDMA` when enabled in CMake (valkey-io#206) 41c5911f1 Remove macro UNUSED from public API (valkey-io#200) 969a8c546 Fix dependency issue with RDMA (valkey-io#201) git-subtree-dir: deps/libvalkey git-subtree-split: d95a5ee9ad95b9ee7f298f38d0fb93f3f7659ef7 Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit does not remove redis.call/pcall just yet. It also does not rename Redis in error messages such as "Please specify at least one argument for this redis lib call". This allows users to maintain full backwards compatibility while introducing an option to use server.call for new code.
I verified that the unit tests pass. Also manually verified that the redis-server responds to server.call invocations within lua scripting. Also verified that function registration works as expected.