dice icon indicating copy to clipboard operation
dice copied to clipboard

Inconsistent Multiple Commands: Non Set commands must return different error message

Open apoorvyadav1111 opened this issue 6 months ago • 2 comments

Non Set related commands such as GET, GETDEL, INCR... is not consistent with Redis implementation. Here are the steps to reproduce the issue

sadd foo bar

Here's the output I observed in Redis v7.2.5, if we run

get foo

or

getdel foo

in Redis v7.2.5

(error) WRONGTYPE Operation against a key holding the wrong kind of value

and here's the output I observed in DiceDB's latest commit of the master branch

(error) ERR expected string but got another type

Make the implementation consistent with the Redis implementation. Make sure you are using Redis version 7.2.5 as a reference for the command implementation and to setup Redis

I am working on finding more about the inconsistent commands that need to handle sets explicitly. I will update this issue and related PR with the commands affected.

apoorvyadav1111 avatar Aug 26 '24 22:08 apoorvyadav1111