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

Issue #598 extend support for the hashmap functions #746

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rootart
Copy link
Contributor

@rootart rootart commented Jun 23, 2024

No description provided.

Copy link

codecov bot commented Jun 23, 2024

Codecov Report

Attention: Patch coverage is 81.91489% with 34 lines in your changes missing coverage. Please review.

Project coverage is 64.3%. Comparing base (f34935c) to head (0dadbb0).
Report is 1 commits behind head on master.

Files Patch % Lines
tests/test_backend.py 15.8% 32 Missing ⚠️
django_redis/client/default.py 98.5% 1 Missing ⚠️
django_redis/client/sharded.py 98.7% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #746     +/-   ##
========================================
+ Coverage    63.3%   64.3%   +1.1%     
========================================
  Files          43      43             
  Lines        3215    3389    +174     
  Branches      244     287     +43     
========================================
+ Hits         2034    2179    +145     
- Misses       1164    1192     +28     
- Partials       17      18      +1     
Flag Coverage Δ
mypy 38.2% <40.4%> (+0.2%) ⬆️
tests 91.0% <99.2%> (+0.7%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@WisdomPill WisdomPill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, but please add versioning in another PR so that it can be also tested separately

def test_hsetnx(self, cache: RedisCache):
result_foo1 = cache.hsetnx("foo_hash1", "foo1", "bar1")
result_foo2 = cache.hsetnx("foo_hash1", "foo2", "bar2")
result_foo2_1 = cache.hsetnx("foo_hash1", "foo2", "bar2")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change the value written?

Suggested change
result_foo2_1 = cache.hsetnx("foo_hash1", "foo2", "bar2")
result_foo2_1 = cache.hsetnx("foo_hash1", "foo2", "bar3")

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

Successfully merging this pull request may close these issues.

2 participants