We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Redis#hdel
MockRedis#hdel
See the following examples:
redis = Redis.new redis.hset('test_key', 'test_field1', 'test_value1') # => true redis.hset('test_key', 'test_field2', 'test_value2') # => true [redis.hget('test_key', 'test_field1'), redis.hget('test_key', 'test_field2')] # => ["test_value1", "test_value2"] redis.hdel('test_key', ['test_field1', 'test_field2']) # => 2 [redis.hget('test_key', 'test_field1'), redis.hget('test_key', 'test_field2')] # => [nil, nil]
redis = MockRedis.new redis.hset('test_key', 'test_field1', 'test_value1') # => true redis.hset('test_key', 'test_field2', 'test_value2') # => true [redis.hget('test_key', 'test_field1'), redis.hget('test_key', 'test_field2')] # => ["test_value1", "test_value2"] redis.hdel('test_key', ['test_field1', 'test_field2']) # => 0 [redis.hget('test_key', 'test_field1'), redis.hget('test_key', 'test_field2')] # => ["test_value1", "test_value2"]
The text was updated successfully, but these errors were encountered:
Thanks for the report, @khiav223577!
Happy to merge a pull request with an accompanying test that fixes the behavior. Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
See the following examples:
Redis
MockRedis
The text was updated successfully, but these errors were encountered: