GETDEL
Since 1.1.0Strings
Syntax
GETDEL keyReturns the string at key and deletes the key, in one step.
Reply
- The value, or
nilif the key did not exist. - A
WRONGTYPEerror, and nothing deleted, if the key is not a string.
Examples
> SET a v
OK
> GETDEL a
"v"
> GET a
(nil)