dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Support GET option for SET command

Open talbii opened this issue 3 years ago • 1 comments

It is possible to supply the GET argument when setting a new string value, in order to return the old value (this is equivalent to GETSET). Currently Dragonfly supports this (i.e., there is no syntax error), however an "OK" is returned instead of the old value.

Example

> SET k1 "Hello"
"OK"
> SET k1 "World" GET
"OK" # expected: "Hello"
> GET k1
"World"

talbii avatar Feb 21 '23 11:02 talbii

#484 is related to this.

romange avatar Feb 21 '23 11:02 romange