GETDEL
Syntax
GETDEL key
GETDEL returns the value of the key and then deletes the key.
The command returns (nil) if the key does not exist.
Examples
localhost:7379> SET k vOK OKlocalhost:7379> GETDEL kOK vlocalhost:7379> GET k(nil)
GETDEL key
GETDEL returns the value of the key and then deletes the key.
The command returns (nil) if the key does not exist.
localhost:7379> SET k vOK OKlocalhost:7379> GETDEL kOK vlocalhost:7379> GET k(nil)