hwware/redis

Update LRANGE return value

Opened this issue · 0 comments

The problem/use-case that the feature addresses
Current command LRANGE
reutnr value is: If key does not exist, return empty array

and in the case: RPUSH mylist "one" "two" "three" "four",
LRANGE mylist -1 -3
it return empty array as well.
Client can not see the difference, thus suggest to update the return value to return (error) ERR no such key
if If key does not exist