DiceDB / dice

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

fix: issue #1114 handling negative offset in SETBIT #1144

Closed Yashasv-Prajapati closed 1 month ago

Yashasv-Prajapati commented 1 month ago

This PR closes issue #1114 and does the following:

  1. Handle negative offset values in SETBIT command.
  2. Throw appropriate error (offset value out of range error) on providing negative offset.
  3. Test cases added for the command with expected outcome added.