You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves#278
Seems like everything is working; however, I'm not sure if moving
`#call` from `MockRedis` to `MockRedis::Database` has some side-effects
-- is there a reason `call` was separated from other commands?
I also changed `send` to `public_send` in `call` implementation (seems
to be OK, I'm not sure if there are any edge cases when calling private
is a usecase).
Also, I think we should allow mix-cased variants of Redis methods
(`RedisMock.new.call(["GET", 123])` does not work right now, but redis
commands are case insensitive).
Usage example:
```ruby
redis = MockRedis.new
redis.pipelined do |pipeline|
pipeline.call(["get", "foo"])
pipeline.call(["get", "bar"])
end
```
Co-authored-by: ya2k <yk@wfolio.com>
Gem version:
0.37.0
Hi! I'm not sure if it was already mentioned in earlier issues. I observe that performing
call
inside pipeline raises an exception:Ordinary operations do work as expected:
And original
redis-client
(4.5.1) works as expected too:Could you please clarify it it's an unimplemented feature or a bug?
The text was updated successfully, but these errors were encountered: