redis-mock icon indicating copy to clipboard operation
redis-mock copied to clipboard

Fix SET to work with NX flag does as expected

Open sampsasaarela opened this issue 4 years ago • 1 comments

On real Redis we will get "OK" on the first call and null on the second, which is expected as the value was set at the first time and cannot be overwritten. Redis-mock will respond with "OK" on the first call, second and any other afterward which is not correct behavior. This will fix it to respond correctly.

Fix: https://github.com/yeahoffline/redis-mock/issues/198

sampsasaarela avatar Dec 17 '21 13:12 sampsasaarela

Can we get this merged please?

foreverest avatar Mar 17 '24 22:03 foreverest