Skip to content

Conversation

@MehrazRumman
Copy link

@MehrazRumman MehrazRumman commented Dec 15, 2025

Description

issue #766
Added full hash command coverage to the cache client (hget/hgetall/hmget/hmset via mapping/hsetnx/hincrby/hincrbyfloat/hvals/hstrlen) and exposed them through the cache facade, keeping key/version handling consistent. Tweaked decoding to handle float string responses (needed for hincrbyfloat). Added regression tests for the new hash behaviors (reads, bulk ops, conditional set, numeric increments, value listing, length).

@MehrazRumman
Copy link
Author

@WisdomPill Could you please review this PR when you have time? Thank you.

@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 36.00000% with 96 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.1%. Comparing base (e0c234f) to head (286bf6a).

Files with missing lines Patch % Lines
django_redis/client/default.py 49.4% 6 Missing and 34 partials ⚠️
tests/test_backend.py 13.7% 38 Missing ⚠️
django_redis/cache.py 33.4% 18 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #806     +/-   ##
========================================
- Coverage    38.2%   38.1%   -0.0%     
========================================
  Files          48      48             
  Lines        3727    3876    +149     
  Branches      301     335     +34     
========================================
+ Hits         1420    1473     +53     
- Misses       2006    2068     +62     
- Partials      301     335     +34     
Flag Coverage Δ
mypy 38.1% <36.0%> (-<0.1%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MehrazRumman MehrazRumman requested review from kysre and ulgens December 18, 2025 11:08
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.

1 participant