DiceDB / dice

DiceDB is a redis-compliant, reactive, scalable, highly-available, unified cache optimized for modern hardware.
https://dicedb.io/
Other
6.83k stars 1.08k forks source link

#951 Refactor: Simple hashset with expiry #1270

Open apoorvyadav1111 opened 1 week ago

apoorvyadav1111 commented 1 week ago

Hi team,

Added a simple design for Hash data type in DiceDB, allowing us to achieve the target 100% of the commands under Hash (except HSCAN in O(1)).

This PR also fixes the HTTP context failure in tests for now to ensure the PR fails only for tests.

Post this PR, I intend to add two commands HEXPIRE and HTTL, which will serve as a template for the following commands:

  1. HEXPIREAT
  2. HEXPIRETIME
  3. HPTTL
  4. HPERSIST
  5. HPEXPIRE
  6. HPEXPIREAT
  7. HPEXPIRETIME