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

#call accepts only array? #323

Open
stevenou opened this issue Mar 12, 2025 · 0 comments
Open

#call accepts only array? #323

stevenou opened this issue Mar 12, 2025 · 0 comments

Comments

@stevenou
Copy link

In redis-client you can do either r.call(['GET', 'mykey']) or r.call('GET', 'mykey') but with mock_redis it seems like it's not possible to do r.call('GET', 'mykey'), only r.call(['GET', 'mykey'])?

Based on https://github.com/sds/mock_redis/blob/e2e00b4baa3502f4ff185601f5e1cb03d9d44c86/lib/mock_redis/database.rb#L52C8-L53C8 it would appear it requires the first argument command be an array.

  1. Am I understanding this correctly?
  2. If so, is there any reason why there is no support for r.call('GET', 'mykey')?

I think it might be due to the downcase code introduced in #287?

Thanks!

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

No branches or pull requests

1 participant