Skip to content

GETDEL

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 v
OK
localhost:7379> GETDEL k
OK "v"
localhost:7379> GET k
OK ""